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

Function WasmEdge_ImportTypeGetExternalType

lib/api/wasmedge.cpp:1596–1604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594// >>>>>>>> WasmEdge import type functions >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
1595
1596WASMEDGE_CAPI_EXPORT enum WasmEdge_ExternalType
1597WasmEdge_ImportTypeGetExternalType(
1598 const WasmEdge_ImportTypeContext *Cxt) noexcept {
1599 if (Cxt) {
1600 return static_cast<WasmEdge_ExternalType>(
1601 fromImpTypeCxt(Cxt)->getExternalType());
1602 }
1603 return WasmEdge_ExternalType_Function;
1604}
1605
1606WASMEDGE_CAPI_EXPORT WasmEdge_String WasmEdge_ImportTypeGetModuleName(
1607 const WasmEdge_ImportTypeContext *Cxt) noexcept {

Callers 1

TESTFunction · 0.85

Calls 1

getExternalTypeMethod · 0.80

Tested by 1

TESTFunction · 0.68