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 39caee9..d58f113 100644
--- a/src/lanes.cpp
+++ b/src/lanes.cpp
@@ -213,7 +213,7 @@ LUAG_FUNC(require)
213// --- If a client wants to transfer stuff of a previously required module from the current state to another Lane, the module must be registered 213// --- If a client wants to transfer stuff of a previously required module from the current state to another Lane, the module must be registered
214// to populate the lookup database in the source lane (and in the destination too, of course) 214// to populate the lookup database in the source lane (and in the destination too, of course)
215// lanes.register( "modname", module) 215// lanes.register( "modname", module)
216LUAG_FUNC(register) 216int lanes_register(lua_State* const L_)
217{ 217{
218 std::string_view const _name{ luaG_checkstring(L_, StackIndex{ 1 }) }; 218 std::string_view const _name{ luaG_checkstring(L_, StackIndex{ 1 }) };
219 LuaType const _mod_type{ luaG_type(L_, StackIndex{ 2 }) }; 219 LuaType const _mod_type{ luaG_type(L_, StackIndex{ 2 }) };
@@ -649,7 +649,7 @@ namespace {
649 { "linda", LG_linda }, 649 { "linda", LG_linda },
650 { "nameof", LG_nameof }, 650 { "nameof", LG_nameof },
651 { "now_secs", LG_now_secs }, 651 { "now_secs", LG_now_secs },
652 { "register", LG_register }, 652 { "register", lanes_register },
653 { "set_singlethreaded", LG_set_singlethreaded }, 653 { "set_singlethreaded", LG_set_singlethreaded },
654 { "set_thread_priority", LG_set_thread_priority }, 654 { "set_thread_priority", LG_set_thread_priority },
655 { "set_thread_affinity", LG_set_thread_affinity }, 655 { "set_thread_affinity", LG_set_thread_affinity },