A function to be called from Wasm code.
| 8 | |
| 9 | // A function to be called from Wasm code. |
| 10 | auto fail_callback( |
| 11 | void* env, const wasm::vec<wasm::Val>& args, wasm::vec<wasm::Val>& results |
| 12 | ) -> wasm::own<wasm::Trap> { |
| 13 | std::cout << "Calling back..." << std::endl; |
| 14 | auto store = reinterpret_cast<wasm::Store*>(env); |
| 15 | auto message = wasm::Name::make_nt(std::string("callback abort")); |
| 16 | return wasm::Trap::make(store, message); |
| 17 | } |
| 18 | |
| 19 | |
| 20 | void print_frame(const wasm::Frame* frame) { |
nothing calls this directly
no outgoing calls
no test coverage detected