| 10 | |
| 11 | namespace { |
| 12 | WasmEdge_ModuleInstanceContext *createModuleC() { |
| 13 | WasmEdge_PluginLoadFromPath( |
| 14 | "./" WASMEDGE_LIB_PREFIX |
| 15 | "wasmedgePluginTestModuleC" WASMEDGE_LIB_EXTENSION); |
| 16 | WasmEdge_String Str = WasmEdge_StringCreateByCString("wasmedge_plugintest_c"); |
| 17 | const WasmEdge_PluginContext *PluginCxt = WasmEdge_PluginFind(Str); |
| 18 | WasmEdge_StringDelete(Str); |
| 19 | if (!PluginCxt) { |
| 20 | return nullptr; |
| 21 | } |
| 22 | |
| 23 | Str = WasmEdge_StringCreateByCString("wasmedge_plugintest_c_module"); |
| 24 | WasmEdge_ModuleInstanceContext *ModCxt = |
| 25 | WasmEdge_PluginCreateModule(PluginCxt, Str); |
| 26 | WasmEdge_StringDelete(Str); |
| 27 | return ModCxt; |
| 28 | } |
| 29 | |
| 30 | WasmEdge_ModuleInstanceContext *createModuleCPP() { |
| 31 | WasmEdge_PluginLoadFromPath( |
no test coverage detected