| 26 | } |
| 27 | |
| 28 | auto get_export_func(const wasm::ownvec<wasm::Extern>& exports, size_t i) -> const wasm::Func* { |
| 29 | if (exports.size() <= i || !exports[i]->func()) { |
| 30 | std::cout << "> Error accessing function export " << i << "!" << std::endl; |
| 31 | exit(1); |
| 32 | } |
| 33 | return exports[i]->func(); |
| 34 | } |
| 35 | |
| 36 | template<class T, class U> |
| 37 | void check(T actual, U expected) { |