Function wasmer_wasix::syscalls::wasi::proc_exit::proc_exit

source ·
pub fn proc_exit<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    code: ExitCode,
) -> Result<(), WasiError>
Expand description

§proc_exit()

Terminate the process normally. An exit code of 0 indicates successful termination of the program. The meanings of other values is dependent on the environment. Inputs:

  • ExitCode Exit code to return to the operating system