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

Function WasmEdge_ImportTypeGetGlobalType

lib/api/wasmedge.cpp:1675–1685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1673}
1674
1675WASMEDGE_CAPI_EXPORT const WasmEdge_GlobalTypeContext *
1676WasmEdge_ImportTypeGetGlobalType(
1677 const WasmEdge_ASTModuleContext *ASTCxt,
1678 const WasmEdge_ImportTypeContext *Cxt) noexcept {
1679 if (ASTCxt && Cxt &&
1680 fromImpTypeCxt(Cxt)->getExternalType() ==
1681 WasmEdge::ExternalType::Global) {
1682 return toGlobTypeCxt(&fromImpTypeCxt(Cxt)->getExternalGlobalType());
1683 }
1684 return nullptr;
1685}
1686
1687// <<<<<<<< WasmEdge import type functions <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
1688

Callers 1

TESTFunction · 0.85

Calls 1

getExternalTypeMethod · 0.80

Tested by 1

TESTFunction · 0.68