| 9 | |
| 10 | |
| 11 | wasm_memory_t* get_export_memory(const wasm_extern_vec_t* exports, size_t i) { |
| 12 | if (exports->size <= i || !wasm_extern_as_memory(exports->data[i])) { |
| 13 | printf("> Error accessing memory export %zu!\n", i); |
| 14 | exit(1); |
| 15 | } |
| 16 | return wasm_extern_as_memory(exports->data[i]); |
| 17 | } |
| 18 | |
| 19 | wasm_func_t* get_export_func(const wasm_extern_vec_t* exports, size_t i) { |
| 20 | if (exports->size <= i || !wasm_extern_as_func(exports->data[i])) { |
no test coverage detected