()
| 70 | } |
| 71 | |
| 72 | func (t *Trap) ptr() *C.wasm_trap_t { |
| 73 | ret := t._ptr |
| 74 | if ret == nil { |
| 75 | panic("object has been closed already") |
| 76 | } |
| 77 | maybeGC() |
| 78 | return ret |
| 79 | } |
| 80 | |
| 81 | // Close will deallocate this type's state explicitly. |
| 82 | // |
no test coverage detected