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

Function check

example/memory.cc:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template<class T, class U>
27void check(T actual, U expected) {
28 if (actual != expected) {
29 std::cout << "> Error on result, expected " << expected << ", got " << actual << std::endl;
30 exit(1);
31 }
32}
33
34template<class... Args>
35void check_ok(const wasm::Func* func, Args... xs) {

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected