From 5142e630bf91e2353f4397e03593ab56b3a07b86 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 21 Nov 2002 15:19:11 -0200 Subject: new macro `condhardstacktests' to control hard stack tests --- ldo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ldo.c') diff --git a/ldo.c b/ldo.c index f781da5e..45d820c7 100644 --- a/ldo.c +++ b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 1.205 2002/11/21 15:16:04 roberto Exp roberto $ +** $Id: ldo.c,v 1.206 2002/11/21 15:46:44 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -218,6 +218,7 @@ StkId luaD_precall (lua_State *L, StkId func) { if (!ttisfunction(func)) /* `func' is not a function? */ func = tryfuncTM(L, func); /* check the `function' tag method */ if (L->ci + 1 == L->end_ci) luaD_growCI(L); + else condhardstacktests(luaD_reallocCI(L, L->size_ci)); cl = &clvalue(func)->l; if (!cl->isC) { /* Lua function? prepare its call */ CallInfo *ci; -- cgit v1.2.3-55-g6feb