Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-core-dev] __cplusplus not defined for ParserLanguage.CPP

John> We handle this in CDT 2.0 stream ... in Scanner.setupBuiltInMacros() 

John> if( getDefinition( __CPLUSPLUS ) == null ) 
John>    addDefinition( __CPLUSPLUS, CPLUSPLUS_MACRO); //$NON-NLS-1$ 

I saw this go by on the list, and I was wondering: for a gcc-using
project, why not use `cpp -dM' to automatically detect all the
predefined macros?

Tom


Back to the top