| 780 | extern "C++" { |
| 781 | |
| 782 | auto wasm_callback( |
| 783 | void* env, const vec<Val>& args, vec<Val>& results |
| 784 | ) -> own<Trap> { |
| 785 | auto f = reinterpret_cast<wasm_func_callback_t>(env); |
| 786 | return adopt_trap(f(hide_val_vec(args), hide_val_vec(results))); |
| 787 | } |
| 788 | |
| 789 | struct wasm_callback_env_t { |
| 790 | wasm_func_callback_with_env_t callback; |
nothing calls this directly
no outgoing calls
no test coverage detected