pub unsafe extern "C" fn WasmEdge_VMCreate(
    ConfCxt: *const WasmEdge_ConfigureContext,
    StoreCxt: *mut WasmEdge_StoreContext
) -> *mut WasmEdge_VMContext
Expand description

Creation of the WasmEdge_VMContext.

The caller owns the object and should call WasmEdge_VMDelete to destroy it.

\param ConfCxt the WasmEdge_ConfigureContext as the configuration of VM. NULL for the default configuration. \param StoreCxt the WasmEdge_StoreContext as the external WASM store of VM. The instantiation and execution will refer to this store context, and the life cycle should be ensured until the VM context is deleted. NULL for the default store owned by WasmEdge_VMContext.

\returns pointer to context, NULL if failed.