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