Function haybale::function_hooks::abort_hook
source · pub fn abort_hook<B: Backend>(
_state: &mut State<'_, B>,
_call: &dyn IsCall
) -> Result<ReturnValue<B::BV>>
Expand description
This hook ignores the function arguments and returns ReturnValue::Abort
.
It is suitable for hooking functions such as C’s exit()
which abort the
program and never return.