I believe it's:#if __has_feature(nullability)
On 13 June 2015 at 11:54, Jonathan Schleifer <js-apple-objc@webkeks.org> wrote:
Hi!
I saw that there's a __has_feature() for objc_generics and objc_kindof, however, there doesn't seem to be objc_nullability or similar. Since the sources for the Clang from Xcode 7 haven't been released, I grepped through `strings clang`, however, I could not find anything useful.
What is the best way to check if the compiler supports nullability, so that if not I can #define nonnull and friends to nothing?
PS: I also found objc_generics_variance - what's that?
--
Jonathan
No comments:
Post a Comment