Clang __has_feature check for new 'nullable' language extensions?
Clang __has_feature check for new 'nullable' language extensions?
- Subject: Clang __has_feature check for new 'nullable' language extensions?
- From: Jens Alfke <email@hidden>
- Date: Wed, 11 Feb 2015 23:19:37 -0800
I’m starting to add the new Objective-C nullability indicators (nullable, nonnull, #pragma clang assume_nonnull, etc.) to my framework's headers. But how can I do so in a backward-compatible way, so that clients building with earlier versions of Xcode can use the headers without errors?
I’m guessing there’s a Clang __has_feature(…) parameter that can be used to test for this, but it’s not mentioned in the release notes. Anyone know what it might be?
—Jens
_______________________________________________
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