Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(c-api) Fix how
wasm_tabletype_t
is implemented.
In `wasm.h`, `wasm_tabletype_t` is implemented with `WASM_DECLARE_TYPE`, so with `WASM_DECLARE_VEC(tabletype, *)`. This `*` means the C struct for the vector is defined: ```c struct wasm_tabletype_vec_t { size_t size; wasm_tabletype_t** data; } ``` The way we implement `wasm_tabletype_vec_t` in Rust is with the `wasm_declare_vec!` macro. And it is wrong. We must use `wasm_declared_boxed_vec!`.
- Loading branch information