Function haybale::function_hooks::abort_hook[][src]

pub fn abort_hook<B: Backend>(
    _state: &mut State<'_, B>,
    _call: &dyn IsCall
) -> Result<ReturnValue<B::BV>>

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.