diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-29 09:16:07 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-29 09:16:07 +0200 |
commit | 28c7e6b487242f76cc4a945cc462612f90caee7e (patch) | |
tree | ef4c1a68c47286b8a3ce30b91bd7f8f8cb0fd4c2 | |
parent | e79953ff093c0518975111c69d16e97ccf966e20 (diff) | |
download | lanes-28c7e6b487242f76cc4a945cc462612f90caee7e.tar.gz lanes-28c7e6b487242f76cc4a945cc462612f90caee7e.tar.bz2 lanes-28c7e6b487242f76cc4a945cc462612f90caee7e.zip |
expose nil sentinel as lanes.null
-rw-r--r-- | src/lanes.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
1993 | push_unique_key( L, CANCEL_ERROR); // settings M CANCEL_ERROR | 1993 | push_unique_key( L, CANCEL_ERROR); // settings M CANCEL_ERROR |
1994 | lua_setfield( L, -2, "cancel_error"); // settings M | 1994 | lua_setfield( L, -2, "cancel_error"); // settings M |
1995 | 1995 | ||
1996 | push_unique_key( L, NIL_SENTINEL); // settings M NIL_SENTINEL | ||
1997 | lua_setfield( L, -2, "null"); // settings M | ||
1998 | |||
1996 | STACK_MID( L, 2); // reference stack contains only the function argument 'settings' | 1999 | STACK_MID( L, 2); // reference stack contains only the function argument 'settings' |
1997 | // we'll need this every time we transfer some C function from/to this state | 2000 | // we'll need this every time we transfer some C function from/to this state |
1998 | REGISTRY_SET( L, LOOKUP_REGKEY, lua_newtable( L)); | 2001 | REGISTRY_SET( L, LOOKUP_REGKEY, lua_newtable( L)); |