Close will deallocate this linker's state explicitly. For more information see the documentation for engine.Close()
()
| 38 | // |
| 39 | // For more information see the documentation for engine.Close() |
| 40 | func (l *Linker) Close() { |
| 41 | if l._ptr == nil { |
| 42 | return |
| 43 | } |
| 44 | runtime.SetFinalizer(l, nil) |
| 45 | C.wasmtime_linker_delete(l._ptr) |
| 46 | l._ptr = nil |
| 47 | |
| 48 | } |
| 49 | |
| 50 | // AllowShadowing configures whether names can be redefined after they've already been defined |
| 51 | // in this linker. |
no outgoing calls