Attribute Macro pre_hook

Source
#[pre_hook]
Expand description

Proc macro that indicates that any code in this function will be run just before the original function is called. The function being proxied can be accessed as orig_func

Note: Returning in this function will skip running the original.