Function wasmedge_sys::ffi::WasmEdge_ConfigureAddProposal
source · pub unsafe extern "C" fn WasmEdge_ConfigureAddProposal(
Cxt: *mut WasmEdge_ConfigureContext,
Prop: WasmEdge_Proposal
)
Expand description
Add a proposal setting into the WasmEdge_ConfigureContext.
For turning on a specific WASM proposal in VM, loader, or compiler contexts, etc., you can set the proposal value into the WasmEdge_ConfigureContext and create the VM, loader, or compiler contexts, etc. with this context.
WasmEdge_ConfigureContext *Conf = WasmEdge_ConfigureCreate();
WasmEdge_ConfigureAddProposal(Conf, WasmEdge_Proposal_BulkMemoryOperations);
WasmEdge_ConfigureAddProposal(Conf, WasmEdge_Proposal_ReferenceTypes);
WasmEdge_ConfigureAddProposal(Conf, WasmEdge_Proposal_SIMD);
WasmEdge_VMContext *VM = WasmEdge_VMCreate(Conf, NULL);
This function is thread-safe.
\param Cxt the WasmEdge_ConfigureContext to add the proposal value. \param Prop the proposal value.