Lines Matching refs:nres
346 static StkId rethook (lua_State *L, CallInfo *ci, StkId firstres, int nres) {
360 luaD_hook(L, LUA_HOOKRET, -1, ftransfer, nres); /* call it */
387 ** Given 'nres' results at 'firstResult', move 'wanted' of them to 'res'.
392 static void moveresults (lua_State *L, StkId res, int nres, int wanted) {
400 if (nres == 0) /* no results? */
403 setobjs2s(L, res, L->top - nres); /* move it to proper place */
407 wanted = nres; /* we want all results */
416 wanted = nres;
420 firstresult = L->top - nres; /* index of first result */
422 for (i = 0; i < nres && i < wanted; i++)
434 void luaD_poscall (lua_State *L, CallInfo *ci, int nres) {
436 L->top = rethook(L, ci, L->top - nres, nres);
439 moveresults(L, ci->func, nres, ci->nresults);