| 312 | |
| 313 | |
| 314 | static void callhook (lua_State *L, CallInfo *ci) { |
| 315 | int hook = LUA_HOOKCALL; |
| 316 | ci->u.l.savedpc++; /* hooks assume 'pc' is already incremented */ |
| 317 | if (isLua(ci->previous) && |
| 318 | GET_OPCODE(*(ci->previous->u.l.savedpc - 1)) == OP_TAILCALL) { |
| 319 | ci->callstatus |= CIST_TAIL; |
| 320 | hook = LUA_HOOKTAILCALL; |
| 321 | } |
| 322 | luaD_hook(L, hook, -1); |
| 323 | ci->u.l.savedpc--; /* correct 'pc' */ |
| 324 | } |
| 325 | |
| 326 | |
| 327 | static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { |
no test coverage detected