Function wasmedge_sys::ffi::WasmEdge_ImportTypeGetTableType
source · pub unsafe extern "C" fn WasmEdge_ImportTypeGetTableType(
ASTCxt: *const WasmEdge_ASTModuleContext,
Cxt: *const WasmEdge_ImportTypeContext
) -> *const WasmEdge_TableTypeContext
Expand description
Get the external value (which is table type) from an import type.
The import type context should be the one queried from the AST module
context, or this function will cause unexpected error.
The table type context links to the table type in the import type context
and the AST module context. The caller should NOT call the
WasmEdge_TableTypeDelete
.
\param ASTCxt the WasmEdge_ASTModuleContext.
\param Cxt the WasmEdge_ImportTypeContext which queried from the ASTCxt
.
\returns the table type. NULL if failed or the external type of the import
type is not WasmEdge_ExternalType_Table
.