[cfe-commits] Rép: [PATCH] _has_feature support for new C1X?features.
Chris Lattner
clattner at apple.com
Tue May 3 17:37:44 PDT 2011
On May 1, 2011, at 11:30 PM, Jean-Daniel Dupas wrote:
>>
>> I agree. We should also have a __has_feature(has_extension) of course, and the new goodness should be documented in the language extensions guide.
>>
>
> Is this really needed ? We can already test for has_extension availability using ifdef.
> #ifndef __has_extension // Optional of course.
> #define __has_extension(x) 0 // Compatibility with non-clang compilers.
> #endif
Ah, great point. This is even better. Nope, not needed.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110503/69562275/attachment.html>
More information about the cfe-commits
mailing list