aboutsummaryrefslogtreecommitdiff
path: root/src/compat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.cpp')
-rw-r--r--src/compat.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compat.cpp b/src/compat.cpp
index efc2ffd..66fa3d5 100644
--- a/src/compat.cpp
+++ b/src/compat.cpp
@@ -11,7 +11,7 @@
11// ################################################################################################# 11// #################################################################################################
12 12
13// a small helper to obtain a module's table from the registry instead of relying on the presence of _G["<name>"] 13// a small helper to obtain a module's table from the registry instead of relying on the presence of _G["<name>"]
14LuaType luaG_getmodule(lua_State* L_, char const* name_) 14LuaType luaG_getmodule(lua_State* L_, std::string_view const& name_)
15{ 15{
16 STACK_CHECK_START_REL(L_, 0); 16 STACK_CHECK_START_REL(L_, 0);
17 LuaType _type{ luaG_getfield(L_, LUA_REGISTRYINDEX, LUA_LOADED_TABLE) }; // L_: _R._LOADED|nil 17 LuaType _type{ luaG_getfield(L_, LUA_REGISTRYINDEX, LUA_LOADED_TABLE) }; // L_: _R._LOADED|nil
@@ -46,7 +46,6 @@ int luaL_getsubtable(lua_State* L_, int idx_, const char* fname_)
46 return 0; /* false, because did not find table there */ 46 return 0; /* false, because did not find table there */
47 } 47 }
48} 48}
49
50// ################################################################################################# 49// #################################################################################################
51 50
52void luaL_requiref(lua_State* L_, const char* modname_, lua_CFunction openf_, int glb_) 51void luaL_requiref(lua_State* L_, const char* modname_, lua_CFunction openf_, int glb_)