Re: Link fails for test but not app build
Re: Link fails for test but not app build
- Subject: Re: Link fails for test but not app build
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 02 Jul 2013 18:00:25 -0600
On Jul 2, 2013, at 5:48 PM, Rick Mann <email@hidden> wrote:
> Fascinating. That makes a difference. But only in the Test target. The application target works fine with plain "inline."
>
> Is that documented anywhere?
I don't think so. I've just found that, when using GCC or LLVM, for some reason, using "__inline__" to mark an inline function is a lot less problematic than using "inline" when building C or ObjC code.
> Should I use that, or NS_INLINE (which adds "always_inline")?
The difference is, "always_inline" enables inlining the function when optimization is turned off. If you want that behavior, then by all means, use NS_INLINE instead.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden