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

Function check_trap1

example/memory.c:85–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void check_trap1(wasm_func_t* func, int32_t arg) {
86 wasm_val_t args[] = { WASM_I32_VAL(arg) };
87 check_trap(func, 1, args);
88}
89
90void check_trap2(wasm_func_t* func, int32_t arg1, int32_t arg2) {
91 wasm_val_t args[] = { WASM_I32_VAL(arg1), WASM_I32_VAL(arg2) };

Callers 1

mainFunction · 0.85

Calls 1

check_trapFunction · 0.70

Tested by

no test coverage detected