| 25 | |
| 26 | template<class T, class U> |
| 27 | void check(T actual, U expected) { |
| 28 | if (actual != expected) { |
| 29 | std::cout << "> Error reading value, expected " << expected << ", got " << actual << std::endl; |
| 30 | exit(1); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | auto call(const wasm::Func* func) -> wasm::Val { |
| 35 | auto args = wasm::vec<wasm::Val>::make(); |