diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-10 16:49:58 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-06-10 16:49:58 +0200 |
commit | ae582acdb1bfb3fb4171682b884545d174e95aa9 (patch) | |
tree | b0c9c0b14f6d57cd8ce1c14d4d23df1adb0bc539 /src/lanes.cpp | |
parent | 3f5c16116a3a7740ac4ac62b663661d772543c2e (diff) | |
download | lanes-ae582acdb1bfb3fb4171682b884545d174e95aa9.tar.gz lanes-ae582acdb1bfb3fb4171682b884545d174e95aa9.tar.bz2 lanes-ae582acdb1bfb3fb4171682b884545d174e95aa9.zip |
linda:send() returns nil,<something> in case of error
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 9b3b28c..5d40ed4 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -867,10 +867,10 @@ LANES_API void luaopen_lanes_embedded(lua_State* L_, lua_CFunction _luaopen_lane | |||
867 | { | 867 | { |
868 | STACK_CHECK_START_REL(L_, 0); | 868 | STACK_CHECK_START_REL(L_, 0); |
869 | // pre-require lanes.core so that when lanes.lua calls require "lanes.core" it finds it is already loaded | 869 | // pre-require lanes.core so that when lanes.lua calls require "lanes.core" it finds it is already loaded |
870 | luaL_requiref(L_, "lanes.core", luaopen_lanes_core, 0); // L_: ... lanes.core | 870 | luaL_requiref(L_, kLanesCoreLibName, luaopen_lanes_core, 0); // L_: ... lanes.core |
871 | lua_pop(L_, 1); // L_: ... | 871 | lua_pop(L_, 1); // L_: ... |
872 | STACK_CHECK(L_, 0); | 872 | STACK_CHECK(L_, 0); |
873 | // call user-provided function that runs the chunk "lanes.lua" from wherever they stored it | 873 | // call user-provided function that runs the chunk "lanes.lua" from wherever they stored it |
874 | luaL_requiref(L_, "lanes", _luaopen_lanes ? _luaopen_lanes : default_luaopen_lanes, 0); // L_: ... lanes | 874 | luaL_requiref(L_, kLanesLibName, _luaopen_lanes ? _luaopen_lanes : default_luaopen_lanes, 0); // L_: ... lanes |
875 | STACK_CHECK(L_, 1); | 875 | STACK_CHECK(L_, 1); |
876 | } | 876 | } |