diff options
Diffstat (limited to 'src/compat.cpp')
-rw-r--r-- | src/compat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compat.cpp b/src/compat.cpp index b45cce2..efc2ffd 100644 --- a/src/compat.cpp +++ b/src/compat.cpp | |||
@@ -14,12 +14,12 @@ | |||
14 | LuaType luaG_getmodule(lua_State* L_, char const* name_) | 14 | LuaType luaG_getmodule(lua_State* L_, char const* name_) |
15 | { | 15 | { |
16 | STACK_CHECK_START_REL(L_, 0); | 16 | STACK_CHECK_START_REL(L_, 0); |
17 | LuaType _type{ static_cast<LuaType>(lua503_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 |
18 | if (_type != LuaType::TABLE) { // L_: _R._LOADED|nil | 18 | if (_type != LuaType::TABLE) { // L_: _R._LOADED|nil |
19 | STACK_CHECK(L_, 1); | 19 | STACK_CHECK(L_, 1); |
20 | return _type; | 20 | return _type; |
21 | } | 21 | } |
22 | _type = static_cast<LuaType>(lua503_getfield(L_, -1, name_)); // L_: _R._LOADED {module}|nil | 22 | _type = luaG_getfield(L_, -1, name_); // L_: _R._LOADED {module}|nil |
23 | lua_remove(L_, -2); // L_: {module}|nil | 23 | lua_remove(L_, -2); // L_: {module}|nil |
24 | STACK_CHECK(L_, 1); | 24 | STACK_CHECK(L_, 1); |
25 | return _type; | 25 | return _type; |