Home
last modified time | relevance | path

Searched refs:allowhook (Results 1 – 10 of 10) sorted by relevance

/freebsd-12.1/contrib/lua/src/
H A Dldo.c255 if (hook && L->allowhook) { /* make sure there is a hook */ in luaD_hook()
266 L->allowhook = 0; /* cannot call hooks inside a hook */ in luaD_hook()
271 lua_assert(!L->allowhook); in luaD_hook()
272 L->allowhook = 1; in luaD_hook()
590 L->allowhook = getoah(ci->callstatus); /* restore original 'allowhook' */ in recover()
725 lu_byte old_allowhooks = L->allowhook; in luaD_pcall()
735 L->allowhook = old_allowhooks; in luaD_pcall()
H A Dlstate.h201 lu_byte allowhook; member
H A Dlgc.c815 lu_byte oldah = L->allowhook; in GCTM()
817 L->allowhook = 0; /* stop debug hooks during GC metamethod */ in GCTM()
825 L->allowhook = oldah; /* restore hooks */ in GCTM()
H A Dlstate.c233 L->allowhook = 1; in preinit_thread()
H A Dlapi.c979 setoah(ci->callstatus, L->allowhook); /* save value of 'allowhook' */ in lua_pcallk()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dldo.c229 if (hook && L->allowhook) { in luaD_hook()
240 L->allowhook = 0; /* cannot call hooks inside a hook */ in luaD_hook()
245 lua_assert(!L->allowhook); in luaD_hook()
246 L->allowhook = 1; in luaD_hook()
480 L->allowhook = ci->u.c.old_allowhook; in recover()
609 lu_byte old_allowhooks = L->allowhook; in luaD_pcall()
619 L->allowhook = old_allowhooks; in luaD_pcall()
H A Dlstate.h167 lu_byte allowhook; member
H A Dlgc.c817 lu_byte oldah = L->allowhook; in GCTM()
819 L->allowhook = 0; /* stop debug hooks during GC metamethod */ in GCTM()
825 L->allowhook = oldah; /* restore hooks */ in GCTM()
H A Dlstate.c212 L->allowhook = 1; in preinit_state()
H A Dlapi.c956 ci->u.c.old_allowhook = L->allowhook; in lua_pcallk()