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

Function check_trap2

examples/memory.c:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls 1

check_trapFunction · 0.70

Tested by

no test coverage detected