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