| 2610 | } |
| 2611 | |
| 2612 | WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_ModuleInstanceListGlobal( |
| 2613 | const WasmEdge_ModuleInstanceContext *Cxt, WasmEdge_String *Names, |
| 2614 | const uint32_t Len) noexcept { |
| 2615 | if (Cxt) { |
| 2616 | return fromModCxt(Cxt)->getGlobalExports( |
| 2617 | [&](auto &Map) { return fillMap(Map, Names, Len); }); |
| 2618 | } |
| 2619 | return 0; |
| 2620 | } |
| 2621 | |
| 2622 | WASMEDGE_CAPI_EXPORT void WasmEdge_ModuleInstanceAddFunction( |
| 2623 | WasmEdge_ModuleInstanceContext *Cxt, const WasmEdge_String Name, |