MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / WasmEdge_ModuleInstanceListGlobal

Function WasmEdge_ModuleInstanceListGlobal

lib/api/wasmedge.cpp:2612–2620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2610}
2611
2612WASMEDGE_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
2622WASMEDGE_CAPI_EXPORT void WasmEdge_ModuleInstanceAddFunction(
2623 WasmEdge_ModuleInstanceContext *Cxt, const WasmEdge_String Name,

Callers 1

TESTFunction · 0.85

Calls 2

fillMapFunction · 0.85
getGlobalExportsMethod · 0.80

Tested by 1

TESTFunction · 0.68