> home > Custom Layer Boundary API

set_custom_hook

September 8th 2024
Modify a global hook binding

Signature

C++
void
set_custom_hook(Application_Links* app,
                Hook_ID hook_id,
                Void_Func* func_ptr);

Parameters

app

the standard custom layer context pointer

hook_id

the id of the hook to be modified

func_ptr

a pointer to the hook function, the function pointer must have a specific signature to match the hook_id's expected signature, but this call does not do the type checking for this, so watch out for that

Related

Hook_ID