| 17 | namespace { |
| 18 | |
| 19 | std::unique_ptr<WasmEdge::Runtime::Instance::ModuleInstance> createModuleC() { |
| 20 | using namespace std::literals::string_view_literals; |
| 21 | WasmEdge::Plugin::Plugin::load(std::filesystem::u8path( |
| 22 | "./" WASMEDGE_LIB_PREFIX |
| 23 | "wasmedgePluginTestModuleC" WASMEDGE_LIB_EXTENSION)); |
| 24 | if (const auto *Plugin = |
| 25 | WasmEdge::Plugin::Plugin::find("wasmedge_plugintest_c"sv)) { |
| 26 | if (const auto *Module = |
| 27 | Plugin->findModule("wasmedge_plugintest_c_module"sv)) { |
| 28 | return Module->create(); |
| 29 | } |
| 30 | } |
| 31 | return {}; |
| 32 | } |
| 33 | |
| 34 | std::unique_ptr<WasmEdge::Runtime::Instance::ModuleInstance> createModuleCPP() { |
| 35 | using namespace std::literals::string_view_literals; |
no test coverage detected