Type Definition neon_sys::TryCatchGlue
source · [−]pub type TryCatchGlue = extern "C" fn(rust_thunk: *mut c_void, cx: *mut c_void, result: *mut c_void, unwind_value: *mut *mut c_void) -> TryCatchControl;
Expand description
A Rust extern “glue function” for C++ to invoke a Rust closure with a TryCatch
live on the stack.
The result
argument can be assumed to be initialized if and only if the glue
function returns TryCatchControl::Returned
.
The unwind_value
argument can be assumed to be initialized if and only if the
glue function returns TryCatchControl::Panicked
.