Skip to main content

NativeExecuteSiteFn

Type Alias NativeExecuteSiteFn 

Source
pub type NativeExecuteSiteFn = unsafe extern "C" fn(context: *mut c_void, call: *mut NativeCall, request: *const NativeSiteRequest, outcome: *mut NativeSiteOutcome, exit: *mut NativeExit) -> NativeHostStatus;
Expand description

Execute exactly one immutable Native IR site.

The callback must initialize outcome when it returns NativeHostStatus::OK, and must initialize exit when that outcome is EXIT. Panics and platform unwinding may not cross this boundary. call retains the frame, opaque value arena, result window, and host table for the complete generated invocation.