Lines Matching refs:nres
326 static StkId rethook (lua_State *L, CallInfo *ci, StkId firstres, int nres) { in rethook() argument
340 luaD_hook(L, LUA_HOOKRET, -1, ftransfer, nres); /* call it */ in rethook()
372 static void moveresults (lua_State *L, StkId res, int nres, int wanted) { in moveresults() argument
380 if (nres == 0) /* no results? */ in moveresults()
383 setobjs2s(L, res, L->top - nres); /* move it to proper place */ in moveresults()
387 wanted = nres; /* we want all results */ in moveresults()
396 wanted = nres; in moveresults()
400 firstresult = L->top - nres; /* index of first result */ in moveresults()
402 for (i = 0; i < nres && i < wanted; i++) in moveresults()
414 void luaD_poscall (lua_State *L, CallInfo *ci, int nres) { in luaD_poscall() argument
416 L->top = rethook(L, ci, L->top - nres, nres); in luaD_poscall()
419 moveresults(L, ci->func, nres, ci->nresults); in luaD_poscall()