diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-21 15:19:11 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-21 15:19:11 -0200 |
commit | 5142e630bf91e2353f4397e03593ab56b3a07b86 (patch) | |
tree | 1402e556c77f5c45e956ea6cd3192cffaf2e28d1 /ldo.c | |
parent | 010bbd9d9c8c6e7d38062df79e886466de5a835a (diff) | |
download | lua-5142e630bf91e2353f4397e03593ab56b3a07b86.tar.gz lua-5142e630bf91e2353f4397e03593ab56b3a07b86.tar.bz2 lua-5142e630bf91e2353f4397e03593ab56b3a07b86.zip |
new macro `condhardstacktests' to control hard stack tests
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.205 2002/11/21 15:16:04 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.206 2002/11/21 15:46:44 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -218,6 +218,7 @@ StkId luaD_precall (lua_State *L, StkId func) { | |||
218 | if (!ttisfunction(func)) /* `func' is not a function? */ | 218 | if (!ttisfunction(func)) /* `func' is not a function? */ |
219 | func = tryfuncTM(L, func); /* check the `function' tag method */ | 219 | func = tryfuncTM(L, func); /* check the `function' tag method */ |
220 | if (L->ci + 1 == L->end_ci) luaD_growCI(L); | 220 | if (L->ci + 1 == L->end_ci) luaD_growCI(L); |
221 | else condhardstacktests(luaD_reallocCI(L, L->size_ci)); | ||
221 | cl = &clvalue(func)->l; | 222 | cl = &clvalue(func)->l; |
222 | if (!cl->isC) { /* Lua function? prepare its call */ | 223 | if (!cl->isC) { /* Lua function? prepare its call */ |
223 | CallInfo *ci; | 224 | CallInfo *ci; |