Lines Matching refs:func

135     ci->func = (ci->func - oldstack) + L->stack;  in correctstack()
244 static StkId tryfuncTM (lua_State *L, StkId func) { in tryfuncTM() argument
245 const TValue *tm = luaT_gettmbyobj(L, func, TM_CALL); in tryfuncTM()
247 ptrdiff_t funcr = savestack(L, func); in tryfuncTM()
249 luaG_typeerror(L, func, "call"); in tryfuncTM()
251 for (p = L->top; p > func; p--) setobjs2s(L, p, p-1); in tryfuncTM()
253 func = restorestack(L, funcr); /* previous call may change stack */ in tryfuncTM()
254 setobj2s(L, func, tm); /* tag method is the new function to be called */ in tryfuncTM()
255 return func; in tryfuncTM()
265 int luaD_precall (lua_State *L, StkId func, int nresults) { in luaD_precall() argument
268 if (!ttisfunction(func)) /* `func' is not a function? */ in luaD_precall()
269 func = tryfuncTM(L, func); /* check the `function' tag method */ in luaD_precall()
270 funcr = savestack(L, func); in luaD_precall()
271 cl = &clvalue(func)->l; in luaD_precall()
278 func = restorestack(L, funcr); in luaD_precall()
280 base = func + 1; in luaD_precall()
285 int nargs = cast_int(L->top - func) - 1; in luaD_precall()
287 func = restorestack(L, funcr); /* previous call may change the stack */ in luaD_precall()
290 ci->func = func; in luaD_precall()
312 ci->func = restorestack(L, funcr); in luaD_precall()
313 L->base = ci->base = ci->func + 1; in luaD_precall()
350 res = ci->func; /* res == final position of 1st result */ in luaD_poscall()
370 void luaD_call (lua_State *L, StkId func, int nResults) { in luaD_call() argument
377 if (luaD_precall(L, func, nResults) == PCRLUA) /* is a Lua function? */ in luaD_call()
456 int luaD_pcall (lua_State *L, Pfunc func, void *u, in luaD_pcall() argument
464 status = luaD_rawrunprotected(L, func, u); in luaD_pcall()