pub unsafe extern "C" fn WasmEdge_ConfigureAddProposal(
Cxt: *mut WasmEdge_ConfigureContext,
Prop: WasmEdge_Proposal,
)Expand description
Add a proposal setting to the WasmEdge_ConfigureContext.
To turn on a specific WASM proposal in the VM, loader, or compiler contexts, etc., set the proposal value in 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.