wasmedge_sys::ffi

Function WasmEdge_ResultOK

Source
pub unsafe extern "C" fn WasmEdge_ResultOK(
    Res: WasmEdge_Result,
) -> bool
Expand description

Check the result is a success or not.

\param Res the WasmEdge_Result struct.

\returns true if the error code is WasmEdge_Result_Success or WasmEdge_Result_Terminate, false for others.