MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / mkTrap

Function mkTrap

trap.go:64–70  ·  view source on GitHub ↗
(ptr *C.wasm_trap_t)

Source from the content-addressed store, hash-verified

62}
63
64func mkTrap(ptr *C.wasm_trap_t) *Trap {
65 trap := &Trap{_ptr: ptr}
66 runtime.SetFinalizer(trap, func(trap *Trap) {
67 C.wasm_trap_delete(trap._ptr)
68 })
69 return trap
70}
71
72func (t *Trap) ptr() *C.wasm_trap_t {
73 ret := t._ptr

Callers 2

enterWasmFunction · 0.85
NewTrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…