AllowShadowing configures whether names can be redefined after they've already been defined in this linker.
(allow bool)
| 50 | // AllowShadowing configures whether names can be redefined after they've already been defined |
| 51 | // in this linker. |
| 52 | func (l *Linker) AllowShadowing(allow bool) { |
| 53 | C.wasmtime_linker_allow_shadowing(l.ptr(), C.bool(allow)) |
| 54 | runtime.KeepAlive(l) |
| 55 | } |
| 56 | |
| 57 | // Define defines a new item in this linker with the given module/name pair. Returns |
| 58 | // an error if shadowing is disallowed and the module/name is already defined. |