pub unsafe extern "C" fn WasmEdge_VMValidate(
    Cxt: *mut WasmEdge_VMContext
) -> WasmEdge_Result
Expand description

Validate the WASM module loaded into the VM context.

This is the second step to invoke a WASM function step by step. After loading a WASM module into VM context, You can call this function to validate it. And you can then call WasmEdge_VMInstantiate for the next step. Note that only validated WASM modules can be instantiated in the VM context.

This function is thread-safe.

\param Cxt the WasmEdge_VMContext.

\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage for the error message.