(ptr *C.wasm_valtype_t, owner interface{})
| 54 | } |
| 55 | |
| 56 | func mkValType(ptr *C.wasm_valtype_t, owner interface{}) *ValType { |
| 57 | valtype := &ValType{_ptr: ptr, _owner: owner} |
| 58 | if owner == nil { |
| 59 | runtime.SetFinalizer(valtype, func(valtype *ValType) { |
| 60 | valtype.Close() |
| 61 | }) |
| 62 | } |
| 63 | return valtype |
| 64 | } |
| 65 | |
| 66 | // Kind returns the corresponding `ValKind` for this `ValType` |
| 67 | func (t *ValType) Kind() ValKind { |
no test coverage detected
searching dependent graphs…