• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Clang __has_feature check for new 'nullable' language extensions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Clang __has_feature check for new 'nullable' language extensions?
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Documentation
  • Next by Date: Re: Documentation
  • Previous by thread: Re: Documentation
  • Next by thread: Re: Clang __has_feature check for new 'nullable' language extensions?
  • Index(es):
    • Date
    • Thread