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


__cplusplus is part of the ISO spec.  We have included those definitions in the base implementation, for as we add more parser variants they can take advantage of it.  

JohnC
www.eclipse.org/cdt


cdt-core-dev-admin@xxxxxxxxxxx wrote on 06/07/2004 04:15:20 PM:

> 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
> _______________________________________________
> cdt-core-dev mailing list
> cdt-core-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-core-dev

Back to the top