NewValType creates a new `ValType` with the `kind` provided
(kind ValKind)
| 49 | |
| 50 | // NewValType creates a new `ValType` with the `kind` provided |
| 51 | func NewValType(kind ValKind) *ValType { |
| 52 | ptr := C.wasm_valtype_new(C.wasm_valkind_t(kind)) |
| 53 | return mkValType(ptr, nil) |
| 54 | } |
| 55 | |
| 56 | func mkValType(ptr *C.wasm_valtype_t, owner interface{}) *ValType { |
| 57 | valtype := &ValType{_ptr: ptr, _owner: owner} |
searching dependent graphs…