MCPcopy Create free account
hub / github.com/WebAssembly/wasm-c-api / check

Function check

example/memory.c:28–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28void check(bool success) {
29 if (!success) {
30 printf("> Error, expected success\n");
31 exit(1);
32 }
33}
34
35void check_call(wasm_func_t* func, int i, wasm_val_t args[], int32_t expected) {
36 wasm_val_t r = WASM_INIT_VAL;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected