Skip to content

Commit 28c7e6b

Browse files
author
Benoit Germain
committed
expose nil sentinel as lanes.null
1 parent e79953f commit 28c7e6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lanes.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,6 +1993,9 @@ LUAG_FUNC( configure)
19931993
push_unique_key( L, CANCEL_ERROR); // settings M CANCEL_ERROR
19941994
lua_setfield( L, -2, "cancel_error"); // settings M
19951995

1996+
push_unique_key( L, NIL_SENTINEL); // settings M NIL_SENTINEL
1997+
lua_setfield( L, -2, "null"); // settings M
1998+
19961999
STACK_MID( L, 2); // reference stack contains only the function argument 'settings'
19972000
// we'll need this every time we transfer some C function from/to this state
19982001
REGISTRY_SET( L, LOOKUP_REGKEY, lua_newtable( L));

0 commit comments

Comments
 (0)