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

Function WasmEdge_ModuleInstanceCreate

lib/api/wasmedge.cpp:2274–2283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2272// >>>>>>>> WasmEdge module instance functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
2273
2274WASMEDGE_CAPI_EXPORT WasmEdge_ModuleInstanceContext *
2275WasmEdge_ModuleInstanceCreate(const WasmEdge_String ModuleName) noexcept {
2276 try {
2277 return toModCxt(new WasmEdge::Runtime::Instance::ModuleInstance(
2278 genStrView(ModuleName)));
2279 } catch (...) {
2280 handleCAPIError();
2281 return nullptr;
2282 }
2283}
2284
2285WASMEDGE_CAPI_EXPORT WasmEdge_ModuleInstanceContext *
2286WasmEdge_ModuleInstanceCreateWASIWithFds(

Callers 7

createExternModuleFunction · 0.85
TESTFunction · 0.85
createSpecTestModuleFunction · 0.85
TESTFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

genStrViewFunction · 0.85
handleCAPIErrorFunction · 0.85

Tested by 4

createExternModuleFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68