Function wasmedge_sys::ffi::WasmEdge_ModuleInstanceWASIGetExitCode
source · pub unsafe extern "C" fn WasmEdge_ModuleInstanceWASIGetExitCode(
Cxt: *const WasmEdge_ModuleInstanceContext
) -> u32
Expand description
Get the WASI exit code.
This function will return the exit code after running the “_start” function
of a wasm32-wasi
program.
\param Cxt the WasmEdge_ModuleInstanceContext of WASI import object.
\returns the exit code after executing the “_start” function. Return
EXIT_FAILURE
if the Cxt
is NULL or not a WASI host module.