Function wasmer_c_api::wasm_c_api::types::wasm_valtype_vec_new_empty
source · #[no_mangle]
pub extern "C" fn wasm_valtype_vec_new_empty(
out: &mut wasm_valtype_vec_t
)
Expand description
Creates an empty vector of [wasm_valtype_t *
].
Example
int main() {
// Creates an empty vector of `wasm_valtype_t *`.
wasm_valtype_vec_t vector;
wasm_valtype_vec_new_empty(&vector);
// Check that it is empty.
assert(vector.size == 0);
// Free it.
wasm_valtype_vec_delete(&vector);
return 0;
}