This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Predefined Names in GCC C++, where are they _all_ documented
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Paul E Condon <pecondon at mesanetworks dot net>, gcc-help at gcc dot gnu dot org
- Date: Tue, 11 Jan 2005 06:45:24 -0600
- Subject: Re: Predefined Names in GCC C++, where are they _all_ documented
- References: <20050111025125.GC20186@big>
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