new macro 'condmovestack' instead of 'condhardstacktests'

This commit is contained in:
Roberto Ierusalimschy
2009-06-08 16:35:59 -03:00
parent 5cdec7d124
commit 4a67e48611
4 changed files with 11 additions and 13 deletions

5
ldo.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: ldo.h,v 2.11 2009/03/10 17:14:37 roberto Exp roberto $
** $Id: ldo.h,v 2.12 2009/04/17 14:28:06 roberto Exp roberto $
** Stack and Call structure of Lua
** See Copyright Notice in lua.h
*/
@@ -15,8 +15,7 @@
#define luaD_checkstack(L,n) \
if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TValue)) \
luaD_growstack(L, n); \
else condhardstacktests(luaD_reallocstack(L, L->stacksize - EXTRA_STACK - 1));
luaD_growstack(L, n); else condmovestack(L);
#define incr_top(L) {L->top++; luaD_checkstack(L,0);}