A function to be called from Wasm code.
| 9 | |
| 10 | // A function to be called from Wasm code. |
| 11 | auto hello_callback( |
| 12 | const wasm::vec<wasm::Val>& args, wasm::vec<wasm::Val>& results |
| 13 | ) -> wasm::own<wasm::Trap> { |
| 14 | std::cout << "Calling back..." << std::endl; |
| 15 | std::cout << "> Hello world!" << std::endl; |
| 16 | return nullptr; |
| 17 | } |
| 18 | |
| 19 | |
| 20 | void run() { |
nothing calls this directly
no outgoing calls
no test coverage detected