Skip to main content

nifty_rt_main

Function nifty_rt_main 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nifty_rt_main( program: *const ProgramDesc, ) -> i32
Expand description

Runs program until the app quits, and returns the process’s exit status. An error stops the app, since it leaves the app half-way through a change.

§Safety

program points to a descriptor nf build emitted with this runtime’s ABI_VERSION, next to the compiled code it describes, and this runs on the main thread.