diff options
Diffstat (limited to 'src/compat.cpp')
-rw-r--r-- | src/compat.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/compat.cpp b/src/compat.cpp index 4e8025e..b45cce2 100644 --- a/src/compat.cpp +++ b/src/compat.cpp | |||
@@ -14,15 +14,15 @@ | |||
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{ static_cast<LuaType>(lua503_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 = static_cast<LuaType>(lua503_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; |
26 | } | 26 | } |
27 | 27 | ||
28 | // ################################################################################################# | 28 | // ################################################################################################# |