Lines Matching refs:wanted
433 l_sinline void moveresults (lua_State *L, StkId res, int nres, int wanted) { in moveresults() argument
436 switch (wanted) { /* handle typical cases separately */ in moveresults()
448 wanted = nres; /* we want all results */ in moveresults()
451 if (hastocloseCfunc(wanted)) { /* to-be-closed variables? */ in moveresults()
461 wanted = decodeNresults(wanted); in moveresults()
462 if (wanted == LUA_MULTRET) in moveresults()
463 wanted = nres; /* we want all results */ in moveresults()
469 if (nres > wanted) /* extra results? */ in moveresults()
470 nres = wanted; /* don't need them */ in moveresults()
473 for (; i < wanted; i++) /* complete wanted number of results */ in moveresults()
475 L->top.p = res + wanted; /* top points after the last result */ in moveresults()
486 int wanted = ci->nresults; in luaD_poscall() local
487 if (l_unlikely(L->hookmask && !hastocloseCfunc(wanted))) in luaD_poscall()
490 moveresults(L, ci->func.p, nres, wanted); in luaD_poscall()