aboutsummaryrefslogtreecommitdiff
path: root/src/tools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools.cpp')
-rw-r--r--src/tools.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools.cpp b/src/tools.cpp
index adb30b0..0b10464 100644
--- a/src/tools.cpp
+++ b/src/tools.cpp
@@ -234,7 +234,7 @@ static void populate_func_lookup_table_recur(lua_State* L_, int dbIdx_, int i_,
234 lua_pushnil(L_); // L_: ... {i_} {bfc} nil 234 lua_pushnil(L_); // L_: ... {i_} {bfc} nil
235 while (lua_next(L_, i_) != 0) { // L_: ... {i_} {bfc} k v 235 while (lua_next(L_, i_) != 0) { // L_: ... {i_} {bfc} k v
236 // just for debug, not actually needed 236 // just for debug, not actually needed
237 // char const* key = (lua_type(L, -2) == LUA_TSTRING) ? lua_tostring(L, -2) : "not a string"; 237 // std::string_view const _key{ (lua_type(L_, -2) == LUA_TSTRING) ? lua_tostringview(L_, -2) : "not a string" };
238 // subtable: process it recursively 238 // subtable: process it recursively
239 if (lua_istable(L_, -1)) { // L_: ... {i_} {bfc} k {} 239 if (lua_istable(L_, -1)) { // L_: ... {i_} {bfc} k {}
240 // increment visit count to make sure we will actually scan it at this recursive level 240 // increment visit count to make sure we will actually scan it at this recursive level
@@ -380,7 +380,7 @@ void populate_func_lookup_table(lua_State* const L_, int const i_, std::string_v
380 // scan table contents 380 // scan table contents
381 lua_pushnil(L_); // L_: o "r" {c} {fqn} ... {?} nil 381 lua_pushnil(L_); // L_: o "r" {c} {fqn} ... {?} nil
382 while (lua_next(L_, -2)) { // L_: o "r" {c} {fqn} ... {?} k v 382 while (lua_next(L_, -2)) { // L_: o "r" {c} {fqn} ... {?} k v
383 // char const *const strKey = (lua_type(L_, -2) == LUA_TSTRING) ? lua_tostring(L_, -2) : nullptr; // only for debugging 383 // std::string_view const _strKey{ (lua_type(L_, -2) == LUA_TSTRING) ? lua_tostringview(L_, -2) : "" }; // only for debugging
384 // lua_Number const numKey = (lua_type(L_, -2) == LUA_TNUMBER) ? lua_tonumber(L_, -2) : -6666; // only for debugging 384 // lua_Number const numKey = (lua_type(L_, -2) == LUA_TNUMBER) ? lua_tonumber(L_, -2) : -6666; // only for debugging
385 STACK_CHECK(L_, 2); 385 STACK_CHECK(L_, 2);
386 // append key name to fqn stack 386 // append key name to fqn stack