run_hooks

run_hooks — runs a hooked function.

Syntax

run_hooks (hook_sym, args...?)
		

Arguments

hook_sym

One of several symbols used to identify a hook, as listed below.

args

The arguments of the function that is to run when the event occurs.

Returns

t on success or nil on failure.

Description

This function runs a hook that was previously set up with add_hook. The currently available hooks are:

taskstarted_hook
taskdied_hook
exception_hook
echo_hook
gc_hook
trace_symbol_hook
trace_entry_hook
trace_exit_hook
breakpoint_hook

Example

Please refer to the example in add_hook.

See Also

remove_hook, init_ipc