[swift-dev] Marking a function as __attribute__((weak))
gparker at apple.com
Mon Mar 6 19:59:50 CST 2017
> On Mar 6, 2017, at 5:48 PM, Philippe Hausler via swift-dev <swift-dev at swift.org> wrote:
> Is there a way to mark a function in swift (on Linux) to use the same emission strategy as weak declarations in c?
> I was to tinkering with some ideas on fixing some poor behavior in swift-corelibs-foundation and weak would potentially solve this specific case.
> For reference this is the syntax I am interested in (since it is a bit obscure) https://en.m.wikipedia.org/wiki/Weak_symbol <https://en.m.wikipedia.org/wiki/Weak_symbol>
Weak definitions are expensive. What are you trying to do?
Greg Parker gparker at apple.com <mailto:gparker at apple.com> Runtime Wrangler
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev