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

Function check

example/table.c:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37
38void check(bool success) {
39 if (!success) {
40 printf("> Error, expected success\n");
41 exit(1);
42 }
43}
44
45void check_table(wasm_table_t* table, int32_t i, bool expect_set) {
46 own wasm_ref_t* ref = wasm_table_get(table, i);

Callers 2

check_tableFunction · 0.70
mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected