wamr_sys

Function wasm_runtime_get_import_count

Source
pub unsafe extern "C" fn wasm_runtime_get_import_count(
    module: wasm_module_t,
) -> i32
Expand description

Get the number of import items for a WASM module

@param module the WASM module

@return the number of imports (zero for none), or -1 for failure