Saturday, June 13, 2015

__has_feature() for nullability?

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


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (Objc-language@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/objc-language/anirudha.k.cpp1%40blogger.com

This email sent to anirudha.k.cpp1@blogger.com

No comments:

Post a Comment