From 17cc38096842c0a28d125fe86025df845610dfd4 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 26 Apr 2024 10:21:09 +0200 Subject: Expose nil sentinel as lanes.null --- src/lanes.cpp | 3 +-- 1 file changed, 1 insertion(+), 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) kCancelError.pushKey(L); // settings M kCancelError lua_setfield(L, -2, "cancel_error"); // settings M - /* to activate in a separate commit kNilSentinel.pushKey(L); // settings M kNilSentinel lua_setfield(L, -2, "null"); // settings M - */ + STACK_CHECK(L, 2); // reference stack contains only the function argument 'settings' // we'll need this every time we transfer some C function from/to this state kLookupRegKey.setValue(L, [](lua_State* L) { lua_newtable(L); }); // settings M -- cgit v1.2.3-55-g6feb