| 1673 | } |
| 1674 | |
| 1675 | WASMEDGE_CAPI_EXPORT const WasmEdge_GlobalTypeContext * |
| 1676 | WasmEdge_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 | |