diff options
Diffstat (limited to '')
-rw-r--r-- | ldo.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -412,7 +412,7 @@ static void rethook (lua_State *L, CallInfo *ci, int nres) { | |||
412 | static StkId tryfuncTM (lua_State *L, StkId func) { | 412 | static StkId tryfuncTM (lua_State *L, StkId func) { |
413 | const TValue *tm; | 413 | const TValue *tm; |
414 | StkId p; | 414 | StkId p; |
415 | checkstackGCp(L, 1, func); /* space for metamethod */ | 415 | checkstackp(L, 1, func); /* space for metamethod */ |
416 | tm = luaT_gettmbyobj(L, s2v(func), TM_CALL); /* (after previous GC) */ | 416 | tm = luaT_gettmbyobj(L, s2v(func), TM_CALL); /* (after previous GC) */ |
417 | if (l_unlikely(ttisnil(tm))) | 417 | if (l_unlikely(ttisnil(tm))) |
418 | luaG_callerror(L, s2v(func)); /* nothing to call */ | 418 | luaG_callerror(L, s2v(func)); /* nothing to call */ |
@@ -517,7 +517,7 @@ l_sinline int precallC (lua_State *L, StkId func, int nresults, | |||
517 | lua_CFunction f) { | 517 | lua_CFunction f) { |
518 | int n; /* number of returns */ | 518 | int n; /* number of returns */ |
519 | CallInfo *ci; | 519 | CallInfo *ci; |
520 | checkstackGCp(L, LUA_MINSTACK, func); /* ensure minimum stack size */ | 520 | checkstackp(L, LUA_MINSTACK, func); /* ensure minimum stack size */ |
521 | L->ci = ci = prepCallInfo(L, func, nresults, CIST_C, | 521 | L->ci = ci = prepCallInfo(L, func, nresults, CIST_C, |
522 | L->top.p + LUA_MINSTACK); | 522 | L->top.p + LUA_MINSTACK); |
523 | lua_assert(ci->top.p <= L->stack_last.p); | 523 | lua_assert(ci->top.p <= L->stack_last.p); |
@@ -553,7 +553,7 @@ int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, | |||
553 | int fsize = p->maxstacksize; /* frame size */ | 553 | int fsize = p->maxstacksize; /* frame size */ |
554 | int nfixparams = p->numparams; | 554 | int nfixparams = p->numparams; |
555 | int i; | 555 | int i; |
556 | checkstackGCp(L, fsize - delta, func); | 556 | checkstackp(L, fsize - delta, func); |
557 | ci->func.p -= delta; /* restore 'func' (if vararg) */ | 557 | ci->func.p -= delta; /* restore 'func' (if vararg) */ |
558 | for (i = 0; i < narg1; i++) /* move down function and arguments */ | 558 | for (i = 0; i < narg1; i++) /* move down function and arguments */ |
559 | setobjs2s(L, ci->func.p + i, func + i); | 559 | setobjs2s(L, ci->func.p + i, func + i); |
@@ -600,7 +600,7 @@ CallInfo *luaD_precall (lua_State *L, StkId func, int nresults) { | |||
600 | int narg = cast_int(L->top.p - func) - 1; /* number of real arguments */ | 600 | int narg = cast_int(L->top.p - func) - 1; /* number of real arguments */ |
601 | int nfixparams = p->numparams; | 601 | int nfixparams = p->numparams; |
602 | int fsize = p->maxstacksize; /* frame size */ | 602 | int fsize = p->maxstacksize; /* frame size */ |
603 | checkstackGCp(L, fsize, func); | 603 | checkstackp(L, fsize, func); |
604 | L->ci = ci = prepCallInfo(L, func, nresults, 0, func + 1 + fsize); | 604 | L->ci = ci = prepCallInfo(L, func, nresults, 0, func + 1 + fsize); |
605 | ci->u.l.savedpc = p->code; /* starting point */ | 605 | ci->u.l.savedpc = p->code; /* starting point */ |
606 | for (; narg < nfixparams; narg++) | 606 | for (; narg < nfixparams; narg++) |