MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_ConfigureSetForceInterpreter

Function WasmEdge_ConfigureSetForceInterpreter

lib/api/wasmedge.cpp:1006–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004}
1005
1006WASMEDGE_CAPI_EXPORT void
1007WasmEdge_ConfigureSetForceInterpreter(WasmEdge_ConfigureContext *Cxt,
1008 const bool IsForceInterpreter) noexcept {
1009 if (Cxt) {
1010 if (IsForceInterpreter) {
1011 Cxt->Conf.getRuntimeConfigure().setRunMode(
1012 WasmEdge::RunMode::Interpreter);
1013 }
1014 // Passing `false` is a no-op, preserving the historical "don't force"
1015 // semantic.
1016 }
1017}
1018
1019WASMEDGE_CAPI_EXPORT void
1020WasmEdge_ConfigureSetAllowAFUNIX(WasmEdge_ConfigureContext *Cxt,

Callers 1

TESTFunction · 0.85

Calls 1

setRunModeMethod · 0.80

Tested by 1

TESTFunction · 0.68