MCPcopy Create free account
hub / github.com/defold/defold / callrethooks

Function callrethooks

engine/lua/src/lua/ldo.c:331–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330
331static StkId callrethooks (lua_State *L, StkId firstResult) {
332 ptrdiff_t fr = savestack(L, firstResult); /* next call may change stack */
333 luaD_callhook(L, LUA_HOOKRET, -1);
334 if (f_isLua(L->ci)) { /* Lua function? */
335 while ((L->hookmask & LUA_MASKRET) && L->ci->tailcalls--) /* tail calls */
336 luaD_callhook(L, LUA_HOOKTAILRET, -1);
337 }
338 return restorestack(L, fr);
339}
340
341
342int luaD_poscall (lua_State *L, StkId firstResult) {

Callers 1

luaD_poscallFunction · 0.85

Calls 1

luaD_callhookFunction · 0.85

Tested by

no test coverage detected