[−][src]Function bve_native::panic::bve_set_panic_handler
#[no_mangle] pub unsafe extern "C" fn bve_set_panic_handler(handler: PanicHandler)
Sets the panic handler to the provided function pointer.
Safety
handler
must not be null and must point to a valid function of the proper signature.- The function
handler
points to must uphold the invariants of the contract ofPanicHandler
- There is a minor race between this function and
bve_set_panic_data
. See module documentation.