diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-17 11:53:15 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-17 11:53:15 +0100 |
commit | 48c99e29ae38db79522fb2833f3144ae58c7a906 (patch) | |
tree | 4fbf42918fa22fad025e75733dbe3caf76325f9b /src/compat.hpp | |
parent | efd5318b2d9132996bf35a6af2e82706665890ff (diff) | |
download | lanes-48c99e29ae38db79522fb2833f3144ae58c7a906.tar.gz lanes-48c99e29ae38db79522fb2833f3144ae58c7a906.tar.bz2 lanes-48c99e29ae38db79522fb2833f3144ae58c7a906.zip |
Some constitude tweaks
Diffstat (limited to 'src/compat.hpp')
-rw-r--r-- | src/compat.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compat.hpp b/src/compat.hpp index 80bc391..0c7c5bb 100644 --- a/src/compat.hpp +++ b/src/compat.hpp | |||
@@ -68,9 +68,9 @@ inline size_t lua_rawlen(lua_State* L_, StackIndex idx_) | |||
68 | { | 68 | { |
69 | return lua_objlen(L_, idx_); | 69 | return lua_objlen(L_, idx_); |
70 | } | 70 | } |
71 | void luaL_requiref(lua_State* L_, const char* modname_, lua_CFunction openf_, int glb_); // implementation copied from Lua 5.2 sources | 71 | void luaL_requiref(lua_State* L_, char const* modname_, lua_CFunction openf_, int glb_); // implementation copied from Lua 5.2 sources |
72 | 72 | ||
73 | int luaL_getsubtable(lua_State* L_, StackIndex idx_, const char* fname_); | 73 | int luaL_getsubtable(lua_State* L_, StackIndex idx_, char const* fname_); |
74 | 74 | ||
75 | #endif // LUA_VERSION_NUM == 501 | 75 | #endif // LUA_VERSION_NUM == 501 |
76 | 76 | ||
@@ -292,7 +292,7 @@ ENUM luaG_optenum(lua_State* const L_, StackIndex const idx_, ENUM const def_) | |||
292 | 292 | ||
293 | // ################################################################################################# | 293 | // ################################################################################################# |
294 | 294 | ||
295 | inline void luaG_registerlibfuncs(lua_State* L_, luaL_Reg const* funcs_) | 295 | inline void luaG_registerlibfuncs(lua_State* const L_, luaL_Reg const* funcs_) |
296 | { | 296 | { |
297 | // fake externs to make clang happy... | 297 | // fake externs to make clang happy... |
298 | extern void luaL_register(lua_State*, char const*, luaL_Reg const*); // Lua 5.1 | 298 | extern void luaL_register(lua_State*, char const*, luaL_Reg const*); // Lua 5.1 |
@@ -396,7 +396,7 @@ inline void luaG_pushglobaltable(lua_State* const L_) | |||
396 | 396 | ||
397 | // ################################################################################################# | 397 | // ################################################################################################# |
398 | 398 | ||
399 | inline void luaG_setfield(lua_State* const L_, StackIndex const idx_, char const* k_) = delete; | 399 | inline void luaG_setfield(lua_State* const L_, StackIndex const idx_, char const* const k_) = delete; |
400 | inline void luaG_setfield(lua_State* const L_, StackIndex const idx_, std::string_view const& k_) | 400 | inline void luaG_setfield(lua_State* const L_, StackIndex const idx_, std::string_view const& k_) |
401 | { | 401 | { |
402 | lua_setfield(L_, idx_, k_.data()); | 402 | lua_setfield(L_, idx_, k_.data()); |