| 35 | } |
| 36 | |
| 37 | auto get_export_table(wasm::ownvec<wasm::Extern>& exports, size_t i) -> wasm::Table* { |
| 38 | if (exports.size() <= i || !exports[i]->table()) { |
| 39 | std::cout << "> Error accessing table export " << i << "!" << std::endl; |
| 40 | exit(1); |
| 41 | } |
| 42 | return exports[i]->table(); |
| 43 | } |
| 44 | |
| 45 | |
| 46 | void call_r_v(const wasm::Func* func, const wasm::Ref* ref) { |