diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-26 10:21:09 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-26 10:25:31 +0200 |
commit | 17cc38096842c0a28d125fe86025df845610dfd4 (patch) | |
tree | 738eedc82e8c8dc84dea980f15487a0e4d9e1e0a | |
parent | 4343dc14c1db7ef9e5d57ed1d40740439e1c51d6 (diff) | |
download | lanes-17cc38096842c0a28d125fe86025df845610dfd4.tar.gz lanes-17cc38096842c0a28d125fe86025df845610dfd4.tar.bz2 lanes-17cc38096842c0a28d125fe86025df845610dfd4.zip |
Expose nil sentinel as lanes.null
Diffstat (limited to '')
-rw-r--r-- | src/lanes.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp index 1a4e8b7..d907fcd 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
@@ -1869,10 +1869,9 @@ LUAG_FUNC(configure) | |||
1869 | kCancelError.pushKey(L); // settings M kCancelError | 1869 | kCancelError.pushKey(L); // settings M kCancelError |
1870 | lua_setfield(L, -2, "cancel_error"); // settings M | 1870 | lua_setfield(L, -2, "cancel_error"); // settings M |
1871 | 1871 | ||
1872 | /* to activate in a separate commit | ||
1873 | kNilSentinel.pushKey(L); // settings M kNilSentinel | 1872 | kNilSentinel.pushKey(L); // settings M kNilSentinel |
1874 | lua_setfield(L, -2, "null"); // settings M | 1873 | lua_setfield(L, -2, "null"); // settings M |
1875 | */ | 1874 | |
1876 | STACK_CHECK(L, 2); // reference stack contains only the function argument 'settings' | 1875 | STACK_CHECK(L, 2); // reference stack contains only the function argument 'settings' |
1877 | // we'll need this every time we transfer some C function from/to this state | 1876 | // we'll need this every time we transfer some C function from/to this state |
1878 | kLookupRegKey.setValue(L, [](lua_State* L) { lua_newtable(L); }); // settings M | 1877 | kLookupRegKey.setValue(L, [](lua_State* L) { lua_newtable(L); }); // settings M |