This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Predefined Names in GCC C++, where are they _all_ documented


Hi Paul,

>(paraphrased) List of predefined macros.

Try this trick for the compile to generate a list of defines:
touch empty.cpp
g++ -dM -E empty.cpp

NOTE: this only lists the predefines still "alive" (not #undef'd) at the end of the compilation. It doesn't list things like __FILE__ and __LINE__, which are like preprocessor magic defines or meta-defines.

HTH,
--Eljay


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]