From 28c7e6b487242f76cc4a945cc462612f90caee7e Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 29 Apr 2024 09:16:07 +0200 Subject: expose nil sentinel as lanes.null --- src/lanes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lanes.c b/src/lanes.c index ca2b53a..3705e4d 100644 --- a/src/lanes.c +++ b/src/lanes.c @@ -1993,6 +1993,9 @@ LUAG_FUNC( configure) push_unique_key( L, CANCEL_ERROR); // settings M CANCEL_ERROR lua_setfield( L, -2, "cancel_error"); // settings M + push_unique_key( L, NIL_SENTINEL); // settings M NIL_SENTINEL + lua_setfield( L, -2, "null"); // settings M + STACK_MID( 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 REGISTRY_SET( L, LOOKUP_REGKEY, lua_newtable( L)); -- cgit v1.2.3-55-g6feb