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