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

Function check

example/table.cc:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36template<class T, class U>
37void check(T actual, U expected) {
38 if (actual != expected) {
39 std::cout << "> Error on result, expected " << expected << ", got " << actual << std::endl;
40 exit(1);
41 }
42}
43
44void check(bool success) {
45 if (! success) {

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected