Files
wasmer/lib/c-api/examples/assets/call_trap.wat
2021-06-01 21:47:37 -07:00

12 lines
362 B
Plaintext
Vendored

(module
(type $run_t (func (param i32 i32) (result i32)))
(type $early_exit_t (func (param) (result)))
(import "env" "early_exit" (func $early_exit (type $early_exit_t)))
(func $run (type $run_t) (param $x i32) (param $y i32) (result i32)
(call $early_exit)
(i32.add
(local.get $x)
(local.get $y)))
(export "run" (func $run)))