MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / callrethooks

Function callrethooks

Source/Misc/lua/src/lua.c:5477–5485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5475
5476
5477static StkId callrethooks (lua_State *L, StkId firstResult) {
5478ptrdiff_t fr = savestack(L, firstResult); /* next call may change stack */
5479luaD_callhook(L, LUA_HOOKRET, -1);
5480if (f_isLua(L->ci)) { /* Lua function? */
5481while ((L->hookmask & LUA_MASKRET) && L->ci->tailcalls--) /* tail calls */
5482luaD_callhook(L, LUA_HOOKTAILRET, -1);
5483}
5484return restorestack(L, fr);
5485}
5486
5487
5488int 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