MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / check_trap2

Function check_trap2

examples/multimemory.c:108–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void check_trap2(wasmtime_context_t *store, wasmtime_func_t *func, int32_t arg1,
109 int32_t arg2) {
110 wasmtime_val_t args[2];
111 args[0].kind = WASMTIME_I32;
112 args[0].of.i32 = arg1;
113 args[1].kind = WASMTIME_I32;
114 args[1].of.i32 = arg2;
115 check_trap(store, func, args, 2, 0);
116}
117
118int main() {
119 // Initialize.

Callers 1

mainFunction · 0.70

Calls 1

check_trapFunction · 0.70

Tested by

no test coverage detected