diff options
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r-- | src/lanes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp index 04b0955..9fc7fc9 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -240,7 +240,7 @@ LUAG_FUNC(lane_new) | |||
240 | DEBUGSPEW_CODE(DebugSpew(_U) << "lane_new: setup" << std::endl); | 240 | DEBUGSPEW_CODE(DebugSpew(_U) << "lane_new: setup" << std::endl); |
241 | 241 | ||
242 | std::optional<std::string_view> _libs_str{ lua_isnil(L_, kLibsIdx) ? std::nullopt : std::make_optional(lua_tostringview(L_, kLibsIdx)) }; | 242 | std::optional<std::string_view> _libs_str{ lua_isnil(L_, kLibsIdx) ? std::nullopt : std::make_optional(lua_tostringview(L_, kLibsIdx)) }; |
243 | lua_State* const _L2{ luaG_newstate(_U, SourceState{ L_ }, _libs_str) }; // L_: [fixed] ... L2: | 243 | lua_State* const _L2{ state::NewLaneState(_U, SourceState{ L_ }, _libs_str) }; // L_: [fixed] ... L2: |
244 | STACK_CHECK_START_REL(_L2, 0); | 244 | STACK_CHECK_START_REL(_L2, 0); |
245 | 245 | ||
246 | // 'lane' is allocated from heap, not Lua, since its life span may surpass the handle's (if free running thread) | 246 | // 'lane' is allocated from heap, not Lua, since its life span may surpass the handle's (if free running thread) |
@@ -663,7 +663,7 @@ LUAG_FUNC(configure) | |||
663 | // Linked chains handling | 663 | // Linked chains handling |
664 | _U->selfdestructFirst = SELFDESTRUCT_END; | 664 | _U->selfdestructFirst = SELFDESTRUCT_END; |
665 | _U->initializeAllocatorFunction(L_); | 665 | _U->initializeAllocatorFunction(L_); |
666 | InitializeOnStateCreate(_U, L_); | 666 | state::InitializeOnStateCreate(_U, L_); |
667 | _U->initializeKeepers(L_); | 667 | _U->initializeKeepers(L_); |
668 | STACK_CHECK(L_, 1); | 668 | STACK_CHECK(L_, 1); |
669 | 669 | ||