| 2272 | // >>>>>>>> WasmEdge module instance functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> |
| 2273 | |
| 2274 | WASMEDGE_CAPI_EXPORT WasmEdge_ModuleInstanceContext * |
| 2275 | WasmEdge_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 | |
| 2285 | WASMEDGE_CAPI_EXPORT WasmEdge_ModuleInstanceContext * |
| 2286 | WasmEdge_ModuleInstanceCreateWASIWithFds( |