Chris Lattner wrote: > IMO, the whole notion of a compiler-specific macro has pretty limited > usefulness. Why not add macros for specific *features* offered by the > compiler. For example: > > #ifdef __SUPPORTS_NESTED_FUNCTIONS__ > > is much better than some mismash of version checking, which isn't > guaranteed to be right in the future.
Yeah, but in the absence of an external specification of the syntax it'd have to be __SUPPORTS_GNU_NESTED_FUNCTIONS__. Hmm, looks like this could get very messy, very quickly; I don't think you could do this in any effective way without some compiler-independent organization to define these macros. Andrew.