| 3202 | } |
| 3203 | |
| 3204 | WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_VMRegisterModuleFromFile( |
| 3205 | WasmEdge_VMContext *Cxt, const WasmEdge_String ModuleName, |
| 3206 | const char *Path) noexcept { |
| 3207 | return wrap( |
| 3208 | [&]() { |
| 3209 | return Cxt->VM.registerModule(genStrView(ModuleName), genPath(Path)); |
| 3210 | }, |
| 3211 | EmptyThen, Cxt); |
| 3212 | } |
| 3213 | |
| 3214 | WASMEDGE_CAPI_EXPORT WasmEdge_Result WasmEdge_VMRegisterModuleFromBuffer( |
| 3215 | WasmEdge_VMContext *Cxt, const WasmEdge_String ModuleName, |
nothing calls this directly
no test coverage detected