Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Hywan opened this issue Oct 22, 2020 · 1 comment
Closed

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

Hywan opened this issue Oct 22, 2020 · 1 comment

Comments

@Hywan
Copy link
Contributor

Hywan commented Oct 22, 2020

In the following code:

wasm-c-api/include/wasm.h

Lines 518 to 521 in 3a31b7e

WASM_API_EXTERN own wasm_instance_t* wasm_instance_new(
wasm_store_t*, const wasm_module_t*, const wasm_extern_vec_t* imports,
own wasm_trap_t**
);

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

@Hywan
Copy link
Contributor Author

Hywan commented Oct 22, 2020

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

@Hywan Hywan closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant