WebAssembly / wasm-c-api

Wasm C API prototype
Apache License 2.0
534 stars 77 forks source link

`wasm_instance_new`, what's the role of `**wasm_trap_t` #158

Closed Hywan closed 3 years ago

Hywan commented 3 years ago

In the following code:

https://github.com/WebAssembly/wasm-c-api/blob/3a31b7eba7475d3694efd8d90406ff0711a8e27c/include/wasm.h#L518-L521

I don't understand what's the role of the last **wasm_trap_t argument. Can someone explain it to me please :-)?

Hywan commented 3 years ago

Answered by @syrusakbary in the linked pull request. Closing.