MCPcopy Create free account
hub / github.com/F-Stack/f-stack / callhook

Function callhook

freebsd/contrib/openzfs/module/lua/ldo.c:314–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312
313
314static 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
327static StkId adjust_varargs (lua_State *L, Proto *p, int actual) {

Callers 1

luaD_precallFunction · 0.85

Calls 1

luaD_hookFunction · 0.85

Tested by

no test coverage detected