MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime-go / AllowShadowing

Method AllowShadowing

linker.go:52–55  ·  view source on GitHub ↗

AllowShadowing configures whether names can be redefined after they've already been defined in this linker.

(allow bool)

Source from the content-addressed store, hash-verified

50// AllowShadowing configures whether names can be redefined after they've already been defined
51// in this linker.
52func (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.

Callers 2

TestLinkerShadowingFunction · 0.95
TestLinkerFuncsFunction · 0.95

Calls 1

ptrMethod · 0.95

Tested by 2

TestLinkerShadowingFunction · 0.76
TestLinkerFuncsFunction · 0.76