aboutsummaryrefslogtreecommitdiff
path: root/src/nameof.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-07 11:46:25 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-07 11:46:25 +0200
commitee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3 (patch)
tree68c0d74ac40c6ee098abf606e3d660a862acf04f /src/nameof.cpp
parent35d7a6bb691d7e0564cda324b3d724caf4901545 (diff)
downloadlanes-ee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3.tar.gz
lanes-ee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3.tar.bz2
lanes-ee32d4281a5e59ce81d7f38f86a49fa8ff64d2c3.zip
Boyscouting some luaG_ functions
Diffstat (limited to 'src/nameof.cpp')
-rw-r--r--src/nameof.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nameof.cpp b/src/nameof.cpp
index 8e79fda..6c968d5 100644
--- a/src/nameof.cpp
+++ b/src/nameof.cpp
@@ -60,7 +60,7 @@ THE SOFTWARE.
60 // scan table contents 60 // scan table contents
61 lua_pushnil(L_); // L_: o "r" {c} {fqn} ... {?} nil 61 lua_pushnil(L_); // L_: o "r" {c} {fqn} ... {?} nil
62 while (lua_next(L_, -2)) { // L_: o "r" {c} {fqn} ... {?} k v 62 while (lua_next(L_, -2)) { // L_: o "r" {c} {fqn} ... {?} k v
63 // std::string_view const _strKey{ (luaG_type(L_, -2) == LuaType::STRING) ? luaG_tostringview(L_, -2) : "" }; // only for debugging 63 // std::string_view const _strKey{ (luaG_type(L_, -2) == LuaType::STRING) ? luaG_tostring(L_, -2) : "" }; // only for debugging
64 // lua_Number const numKey = (luaG_type(L_, -2) == LuaType::NUMBER) ? lua_tonumber(L_, -2) : -6666; // only for debugging 64 // lua_Number const numKey = (luaG_type(L_, -2) == LuaType::NUMBER) ? lua_tonumber(L_, -2) : -6666; // only for debugging
65 STACK_CHECK(L_, 2); 65 STACK_CHECK(L_, 2);
66 // append key name to fqn stack 66 // append key name to fqn stack