MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_Result WasmEdge_VMLoadWasmFromASTModule

Function WasmEdge_Result WasmEdge_VMLoadWasmFromASTModule

lib/api/wasmedge.cpp:3408–3412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3406}
3407
3408WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_VMLoadWasmFromASTModule(
3409 WasmEdge_VMContext *Cxt, const WasmEdge_ASTModuleContext *ASTCxt) noexcept {
3410 return wrap([&]() { return Cxt->VM.loadWasm(*fromASTModCxt(ASTCxt)); },
3411 EmptyThen, Cxt, ASTCxt);
3412}
3413
3414WASMEDGE_CAPI_EXPORT WasmEdge_Result
3415WasmEdge_VMValidate(WasmEdge_VMContext *Cxt) noexcept {

Callers

nothing calls this directly

Calls 2

wrapFunction · 0.85
loadWasmMethod · 0.80

Tested by

no test coverage detected