Function relay_ffi::set_panic_hook
source · pub fn set_panic_hook()
Expand description
Registers a hook for capturing panics with backtraces.
This function must be registered early when the FFI is initialized before any other calls are made. Usually, this would be exported from an initialization function.
See the Panic
documentation for more information.
§Example
pub unsafe extern "C" fn init_ffi() {
relay_ffi::set_panic_hook();
}