| 63 | } |
| 64 | |
| 65 | void check_ok(wasmtime_context_t *store, wasmtime_func_t *func, |
| 66 | const wasmtime_val_t *args, size_t nargs) { |
| 67 | wasm_trap_t *trap = NULL; |
| 68 | wasmtime_error_t *error = |
| 69 | wasmtime_func_call(store, func, args, nargs, NULL, 0, &trap); |
| 70 | if (error != NULL || trap != NULL) |
| 71 | exit_with_error("failed to call function", error, trap); |
| 72 | } |
| 73 | |
| 74 | void check_ok2(wasmtime_context_t *store, wasmtime_func_t *func, int32_t arg1, |
| 75 | int32_t arg2) { |
no test coverage detected