From 7b4f59c5ebc84e426e2876906b24d7dd73342f07 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Mon, 19 Nov 2018 09:16:49 +0100 Subject: Internal code tweaks * Registry access code utility macros * CONFIG_REGKEY and LOOKUP_REGKEY are now lightuserdata instead of strings * Stack checking debug macros improvements --- src/linda.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/linda.c') diff --git a/src/linda.c b/src/linda.c index ee60ebc..4d1fa9f 100644 --- a/src/linda.c +++ b/src/linda.c @@ -31,6 +31,7 @@ THE SOFTWARE. */ #include +#include #include "threading.h" #include "compat.h" @@ -171,7 +172,7 @@ LUAG_FUNC( linda_send) Keeper* K = which_keeper( linda->U->keepers, LINDA_KEEPER_HASHSEED( linda)); lua_State* KL = K ? K->L : NULL; // need to do this for 'STACK_CHECK' if( KL == NULL) return 0; - STACK_CHECK( KL); + STACK_CHECK( KL, 0); for( ;;) { if( s != NULL) @@ -832,7 +833,7 @@ static void* linda_id( lua_State* L, DeepOp op_) case eDO_metatable: { - STACK_CHECK( L); + STACK_CHECK( L, 0); lua_newtable( L); // metatable is its own index lua_pushvalue( L, -1); @@ -892,10 +893,10 @@ static void* linda_id( lua_State* L, DeepOp op_) // some constants lua_pushliteral( L, BATCH_SENTINEL); - lua_setfield(L, -2, "batched"); + lua_setfield( L, -2, "batched"); push_unique_key( L, NIL_SENTINEL); - lua_setfield(L, -2, "null"); + lua_setfield( L, -2, "null"); STACK_END( L, 1); return NULL; -- cgit v1.2.3-55-g6feb