Skip to main content

NativeEntryPoint

Type Alias NativeEntryPoint 

Source
pub type NativeEntryPoint = unsafe extern "C" fn(call: *mut NativeCall, exit: *mut NativeExit) -> NativeHostStatus;
Expand description

Uniform generated-function entrypoint.

The caller owns exit; writing through an output pointer avoids platform- specific aggregate return conventions. NativeHostStatus::OK means exit was initialized and must then pass NativeCall::validate_exit. Panics, exceptions, and platform unwinding must never cross this boundary; semantic control transfer is represented exclusively by NativeExit.