aboutsummaryrefslogtreecommitdiff
path: root/src/state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.cpp')
-rw-r--r--src/state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.cpp b/src/state.cpp
index 8520346..271e3a7 100644
--- a/src/state.cpp
+++ b/src/state.cpp
@@ -107,7 +107,7 @@ static void open1lib(lua_State* L_, std::string_view const& name_)
107 luaL_requiref(L_, _name.data(), _libfunc, !isLanesCore); // L_: {lib} 107 luaL_requiref(L_, _name.data(), _libfunc, !isLanesCore); // L_: {lib}
108 // lanes.core doesn't declare a global, so scan it here and now 108 // lanes.core doesn't declare a global, so scan it here and now
109 if (isLanesCore) { 109 if (isLanesCore) {
110 populate_func_lookup_table(L_, -1, _name); 110 tools::PopulateFuncLookupTable(L_, -1, _name);
111 } 111 }
112 lua_pop(L_, 1); // L_: 112 lua_pop(L_, 1); // L_:
113 STACK_CHECK(L_, 0); 113 STACK_CHECK(L_, 0);
@@ -340,7 +340,7 @@ lua_State* luaG_newstate(Universe* U_, SourceState from_, std::optional<std::str
340 STACK_CHECK(_L, 0); 340 STACK_CHECK(_L, 0);
341 // after all this, register everything we find in our name<->function database 341 // after all this, register everything we find in our name<->function database
342 lua_pushglobaltable(_L); // L: _G 342 lua_pushglobaltable(_L); // L: _G
343 populate_func_lookup_table(_L, -1, {}); 343 tools::PopulateFuncLookupTable(_L, -1, {});
344 lua_pop(_L, 1); // L: 344 lua_pop(_L, 1); // L:
345 STACK_CHECK(_L, 0); 345 STACK_CHECK(_L, 0);
346 346