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

Function check

example/global.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 reading value, expected " << expected << ", got " << actual << std::endl;
30 exit(1);
31 }
32}
33
34auto call(const wasm::Func* func) -> wasm::Val {
35 auto args = wasm::vec<wasm::Val>::make();

Callers 1

runFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected