| 1640 | } |
| 1641 | |
| 1642 | WASMEDGE_CAPI_EXPORT const WasmEdge_TableTypeContext * |
| 1643 | WasmEdge_ImportTypeGetTableType( |
| 1644 | const WasmEdge_ASTModuleContext *ASTCxt, |
| 1645 | const WasmEdge_ImportTypeContext *Cxt) noexcept { |
| 1646 | if (ASTCxt && Cxt && |
| 1647 | fromImpTypeCxt(Cxt)->getExternalType() == WasmEdge::ExternalType::Table) { |
| 1648 | return toTabTypeCxt(&fromImpTypeCxt(Cxt)->getExternalTableType()); |
| 1649 | } |
| 1650 | return nullptr; |
| 1651 | } |
| 1652 | |
| 1653 | WASMEDGE_CAPI_EXPORT const WasmEdge_MemoryTypeContext * |
| 1654 | WasmEdge_ImportTypeGetMemoryType( |