| 55 | } |
| 56 | |
| 57 | auto call_v_r(const wasm::Func* func) -> wasm::own<wasm::Ref> { |
| 58 | std::cout << "call_v_r... " << std::flush; |
| 59 | auto args = wasm::vec<wasm::Val>::make(); |
| 60 | auto results = wasm::vec<wasm::Val>::make_uninitialized(1); |
| 61 | if (func->call(args, results)) { |
| 62 | std::cout << "> Error calling function!" << std::endl; |
| 63 | exit(1); |
| 64 | } |
| 65 | std::cout << "okay" << std::endl; |
| 66 | return results[0].release_ref(); |
| 67 | } |
| 68 | |
| 69 | auto call_r_r(const wasm::Func* func, const wasm::Ref* ref) -> wasm::own<wasm::Ref> { |
| 70 | std::cout << "call_r_r... " << std::flush; |
no test coverage detected