Function wasmedge_sys::ffi::WasmEdge_VMLoadWasmFromASTModule
source · pub unsafe extern "C" fn WasmEdge_VMLoadWasmFromASTModule(
Cxt: *mut WasmEdge_VMContext,
ASTCxt: *const WasmEdge_ASTModuleContext
) -> WasmEdge_Result
Expand description
Load the WASM module from loaded WasmEdge AST Module.
This is the first step to invoke a WASM function step by step.
Copy the loaded WasmEdge AST Module context into VM. The VM context has no
dependency on the input AST Module context. You can then call
WasmEdge_VMValidate
for the next step.
This function is thread-safe.
\param Cxt the WasmEdge_VMContext. \param ASTCxt the WasmEdge AST Module context generated by loader or compiler.
\returns WasmEdge_Result. Call WasmEdge_ResultGetMessage
for the error
message.