aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r--src/lanes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp
index a7631bb..b7cd148 100644
--- a/src/lanes.cpp
+++ b/src/lanes.cpp
@@ -466,7 +466,7 @@ LUAG_FUNC(lane_new)
466 lua_pushnil(L_); // L_: [fixed] args... nil L2: 466 lua_pushnil(L_); // L_: [fixed] args... nil L2:
467 // Lua 5.2 wants us to push the globals table on the stack 467 // Lua 5.2 wants us to push the globals table on the stack
468 InterCopyContext _c{ _U, DestState{ _L2 }, SourceState{ L_ }, {}, {}, {}, {}, {} }; 468 InterCopyContext _c{ _U, DestState{ _L2 }, SourceState{ L_ }, {}, {}, {}, {}, {} };
469 lua_pushglobaltable(_L2); // L_: [fixed] args... nil L2: _G 469 luaG_pushglobaltable(_L2); // L_: [fixed] args... nil L2: _G
470 while (lua_next(L_, _globals_idx)) { // L_: [fixed] args... k v L2: _G 470 while (lua_next(L_, _globals_idx)) { // L_: [fixed] args... k v L2: _G
471 std::ignore = _c.inter_copy(2); // L_: [fixed] args... k v L2: _G k v 471 std::ignore = _c.inter_copy(2); // L_: [fixed] args... k v L2: _G k v
472 // assign it in L2's globals table 472 // assign it in L2's globals table
@@ -740,7 +740,7 @@ LUAG_FUNC(configure)
740 // don't do this when called during the initialization of a new lane, 740 // don't do this when called during the initialization of a new lane,
741 // because we will do it after on_state_create() is called, 741 // because we will do it after on_state_create() is called,
742 // and we don't want to skip _G because of caching in case globals are created then 742 // and we don't want to skip _G because of caching in case globals are created then
743 lua_pushglobaltable(L_); // L_: settings M _G 743 luaG_pushglobaltable(L_); // L_: settings M _G
744 tools::PopulateFuncLookupTable(L_, -1, {}); 744 tools::PopulateFuncLookupTable(L_, -1, {});
745 lua_pop(L_, 1); // L_: settings M 745 lua_pop(L_, 1); // L_: settings M
746 } 746 }