From 24d6d0528ddecf787f3fa79c9e7e2c3afb73bd3f Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 18 Mar 2002 17:11:52 -0300 Subject: [PATCH] api.c only needs to check pushes when api_check is defined --- lapi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lapi.c b/lapi.c index faf0fa2c..e9ad6f2a 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 1.176 2002/03/07 18:15:10 roberto Exp roberto $ +** $Id: lapi.c,v 1.177 2002/03/18 18:18:35 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -35,7 +35,8 @@ const char lua_ident[] = #define api_checknelems(L, n) api_check(L, (n) <= (L->top - L->ci->base)) -#define api_incr_top(L) incr_top(L) +#define api_incr_top(L) (api_check(L, L->top+1stack_last), L->top++) +