diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-13 16:26:02 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-13 16:26:02 +0200 |
commit | 89598b602f57f17aabb8d9dbd2d87eb5176160f6 (patch) | |
tree | 95194cdbf3b5352d23ae5a2618ac08358ede1130 /src/compat.cpp | |
parent | 399d4437d7347148952b2a175babe053191bec29 (diff) | |
download | lanes-89598b602f57f17aabb8d9dbd2d87eb5176160f6.tar.gz lanes-89598b602f57f17aabb8d9dbd2d87eb5176160f6.tar.bz2 lanes-89598b602f57f17aabb8d9dbd2d87eb5176160f6.zip |
Progressively applying the coding rules
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 | // ################################################################################################# |