| 43 | } |
| 44 | |
| 45 | void check_table(wasm_table_t* table, int32_t i, bool expect_set) { |
| 46 | own wasm_ref_t* ref = wasm_table_get(table, i); |
| 47 | check((ref != NULL) == expect_set); |
| 48 | if (ref) wasm_ref_delete(ref); |
| 49 | } |
| 50 | |
| 51 | void check_call(wasm_func_t* func, int32_t arg1, int32_t arg2, int32_t expected) { |
| 52 | wasm_val_t vs[2] = { WASM_I32_VAL(arg1), WASM_I32_VAL(arg2) }; |
no test coverage detected