| 287 | |
| 288 | |
| 289 | static void callhook (lua_State *L, CallInfo *ci) { |
| 290 | int hook = LUA_HOOKCALL; |
| 291 | ci->u.l.savedpc++; /* hooks assume 'pc' is already incremented */ |
| 292 | if (isLua(ci->previous) && |
| 293 | GET_OPCODE(*(ci->previous->u.l.savedpc - 1)) == OP_TAILCALL) { |
| 294 | ci->callstatus |= CIST_TAIL; |
| 295 | hook = LUA_HOOKTAILCALL; |
| 296 | } |
| 297 | luaD_hook(L, hook, -1); |
| 298 | ci->u.l.savedpc--; /* correct 'pc' */ |
| 299 | } |
| 300 | |
| 301 | |
| 302 | static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { |
no test coverage detected