lje.hooks
Control over LuaJIT's debug hook functionality. This library is deprecated and mostly useless now.
Functions
lje.hooks.enable()
Deprecated: LJE automatically manages hooks now - does nothing.
Re-enables debug hooks after they have been disabled. Hooks are enabled by default.
lje.hooks.disable()
Deprecated: LJE automatically manages hooks now - does nothing.
Disables debug hooks globally for this state. No hook callbacks will fire until hooks are re-enabled.
lje.hooks.ignore_fn_once(fn)
Deprecated: LJE automatically manages hooks now - does nothing.
Causes the next hook event triggered by fn to be silently ignored. Only suppresses a single event — subsequent calls will fire normally.
Parameters
| Name | Type | Description |
|---|---|---|
fn | function | The function whose next hook event should be ignored. |