Skip to main content

set_jmp

Function set_jmp 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn set_jmp() -> u64
Expand description

Save the current context into the jump buffer. Returns 0 when saving, and 1 when returning from long_jmp.

ยงSafety

This function is unsafe because it manipulates CPU registers directly and relies on the caller to manage the jump buffer correctly.