| 1651 | } |
| 1652 | |
| 1653 | WASMEDGE_CAPI_EXPORT const WasmEdge_MemoryTypeContext * |
| 1654 | WasmEdge_ImportTypeGetMemoryType( |
| 1655 | const WasmEdge_ASTModuleContext *ASTCxt, |
| 1656 | const WasmEdge_ImportTypeContext *Cxt) noexcept { |
| 1657 | if (ASTCxt && Cxt && |
| 1658 | fromImpTypeCxt(Cxt)->getExternalType() == |
| 1659 | WasmEdge::ExternalType::Memory) { |
| 1660 | return toMemTypeCxt(&fromImpTypeCxt(Cxt)->getExternalMemoryType()); |
| 1661 | } |
| 1662 | return nullptr; |
| 1663 | } |
| 1664 | |
| 1665 | WASMEDGE_CAPI_EXPORT const WasmEdge_TagTypeContext * |
| 1666 | WasmEdge_ImportTypeGetTagType(const WasmEdge_ASTModuleContext *ASTCxt, |