aboutsummaryrefslogtreecommitdiff
path: root/src/tools.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-14 16:01:26 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-14 16:01:26 +0200
commit4d364d3e77667b70bf3261da004f4990ef0c3ada (patch)
tree5a106ca427ba8704635b3324a352475dd8706ab8 /src/tools.cpp
parenta925a9ee21c10184a08625e83d2b55850d6cb32f (diff)
downloadlanes-4d364d3e77667b70bf3261da004f4990ef0c3ada.tar.gz
lanes-4d364d3e77667b70bf3261da004f4990ef0c3ada.tar.bz2
lanes-4d364d3e77667b70bf3261da004f4990ef0c3ada.zip
lua_pushliteral -> luaG_pushstring
Diffstat (limited to 'src/tools.cpp')
-rw-r--r--src/tools.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools.cpp b/src/tools.cpp
index 3a331f5..9fc1e35 100644
--- a/src/tools.cpp
+++ b/src/tools.cpp
@@ -323,9 +323,9 @@ namespace tools {
323 _name = "nullptr"; 323 _name = "nullptr";
324 } 324 }
325 lua_pushvalue(L_, _in_base); // L_: {} f 325 lua_pushvalue(L_, _in_base); // L_: {} f
326 std::ignore = luaG_pushstring(L_, _name); // L_: {} f name_ 326 luaG_pushstring(L_, _name); // L_: {} f name_
327 lua_rawset(L_, -3); // L_: {} 327 lua_rawset(L_, -3); // L_: {}
328 std::ignore = luaG_pushstring(L_, _name); // L_: {} name_ 328 luaG_pushstring(L_, _name); // L_: {} name_
329 lua_pushvalue(L_, _in_base); // L_: {} name_ f 329 lua_pushvalue(L_, _in_base); // L_: {} name_ f
330 lua_rawset(L_, -3); // L_: {} 330 lua_rawset(L_, -3); // L_: {}
331 lua_pop(L_, 1); // L_: 331 lua_pop(L_, 1); // L_:
@@ -334,7 +334,7 @@ namespace tools {
334 int _startDepth{ 0 }; 334 int _startDepth{ 0 };
335 if (!_name.empty()) { 335 if (!_name.empty()) {
336 STACK_CHECK(L_, 2); 336 STACK_CHECK(L_, 2);
337 std::ignore = luaG_pushstring(L_, _name); // L_: {} {fqn} "name" 337 luaG_pushstring(L_, _name); // L_: {} {fqn} "name"
338 // generate a name, and if we already had one name, keep whichever is the shorter 338 // generate a name, and if we already had one name, keep whichever is the shorter
339 lua_pushvalue(L_, _in_base); // L_: {} {fqn} "name" t 339 lua_pushvalue(L_, _in_base); // L_: {} {fqn} "name" t
340 update_lookup_entry(L_, _dbIdx, _startDepth); // L_: {} {fqn} "name" 340 update_lookup_entry(L_, _dbIdx, _startDepth); // L_: {} {fqn} "name"