|
|
@ -403,7 +403,7 @@ static void finishCcall (lua_State *L) {
|
|
|
|
lua_assert(ci->u.c.k != NULL); /* must have a continuation */
|
|
|
|
lua_assert(ci->u.c.k != NULL); /* must have a continuation */
|
|
|
|
lua_assert(L->nny == 0);
|
|
|
|
lua_assert(L->nny == 0);
|
|
|
|
/* finish 'luaD_call' */
|
|
|
|
/* finish 'luaD_call' */
|
|
|
|
L->nCcalls--;
|
|
|
|
//L->nCcalls--;
|
|
|
|
/* finish 'lua_callk' */
|
|
|
|
/* finish 'lua_callk' */
|
|
|
|
adjustresults(L, ci->nresults);
|
|
|
|
adjustresults(L, ci->nresults);
|
|
|
|
/* call continuation function */
|
|
|
|
/* call continuation function */
|
|
|
@ -513,7 +513,7 @@ static void resume (lua_State *L, void *ud) {
|
|
|
|
api_checknelems(L, n);
|
|
|
|
api_checknelems(L, n);
|
|
|
|
firstArg = L->top - n; /* yield results come from continuation */
|
|
|
|
firstArg = L->top - n; /* yield results come from continuation */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
L->nCcalls--; /* finish 'luaD_call' */
|
|
|
|
//L->nCcalls--; /* finish 'luaD_call' */
|
|
|
|
luaD_poscall(L, firstArg); /* finish 'luaD_precall' */
|
|
|
|
luaD_poscall(L, firstArg); /* finish 'luaD_precall' */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
unroll(L, NULL);
|
|
|
|
unroll(L, NULL);
|
|
|
|