Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1689: feat(c-api) Use `Option<NonNull<wasm_valtype_t>>` in `wasm_valtype_kind` r=syrusakbary a=Hywan A more Rust-FFI idiomatic way to handle null pointer. Note: In `wasm_valtype_kind`, it's tricky to handle the error because we _must_ return a `wasm_valtype_kind` value. For the moment, it continues to panic, which is probably the best tradeoff. Co-authored-by: Ivan Enderlin <[email protected]>
- Loading branch information