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