jit_insn_default_return

Function jit_insn_default_return 

Source
pub unsafe extern "C" fn jit_insn_default_return(
    func: jit_function_t,
) -> c_int
Expand description

Add an instruction to return a default value if control reaches this point. This is typically used at the end of a function to ensure that all paths return to the caller. Returns zero if out of memory, 1 if a default return was added, and 2 if a default return was not needed.

Note: if this returns 1, but the function signature does not return void, then it indicates that a higher-level language error has occurred and the function should be abandoned.