| 16 | } |
| 17 | |
| 18 | wasm_func_t* get_export_func(const wasm_extern_vec_t* exports, size_t i) { |
| 19 | if (exports->size <= i || !wasm_extern_as_func(exports->data[i])) { |
| 20 | printf("> Error accessing function export %zu!\n", i); |
| 21 | exit(1); |
| 22 | } |
| 23 | return wasm_extern_as_func(exports->data[i]); |
| 24 | } |
| 25 | |
| 26 | |
| 27 | #define check(val, type, expected) \ |
no test coverage detected