From 89598b602f57f17aabb8d9dbd2d87eb5176160f6 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 13 May 2024 16:26:02 +0200 Subject: Progressively applying the coding rules --- src/compat.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/compat.cpp') 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 @@ LuaType luaG_getmodule(lua_State* L_, char const* name_) { STACK_CHECK_START_REL(L_, 0); - LuaType type{ static_cast(lua503_getfield(L_, LUA_REGISTRYINDEX, LUA_LOADED_TABLE)) };// L_: _R._LOADED|nil - if (type != LuaType::TABLE) { // L_: _R._LOADED|nil + LuaType _type{ static_cast(lua503_getfield(L_, LUA_REGISTRYINDEX, LUA_LOADED_TABLE)) };// L_: _R._LOADED|nil + if (_type != LuaType::TABLE) { // L_: _R._LOADED|nil STACK_CHECK(L_, 1); - return type; + return _type; } - type = static_cast(lua503_getfield(L_, -1, name_)); // L_: _R._LOADED {module}|nil - lua_remove(L_, -2); // L_: {module}|nil + _type = static_cast(lua503_getfield(L_, -1, name_)); // L_: _R._LOADED {module}|nil + lua_remove(L_, -2); // L_: {module}|nil STACK_CHECK(L_, 1); - return type; + return _type; } // ################################################################################################# -- cgit v1.2.3-55-g6feb