MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / check_ok

Function check_ok

examples/multimemory.c:65–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void 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
74void check_ok2(wasmtime_context_t *store, wasmtime_func_t *func, int32_t arg1,
75 int32_t arg2) {

Callers 1

check_ok2Function · 0.70

Calls 2

wasmtime_func_callFunction · 0.85
exit_with_errorFunction · 0.70

Tested by

no test coverage detected