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

Function check_ok

examples/memory.c:70–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void 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
79void check_ok2(wasmtime_context_t *store, wasmtime_func_t *func, int32_t arg1,
80 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