9
votes

I'm trying to find out all the preprocessor defines of the Visual C++ compiler (MSVC). I can do

gcc -dM -E - < /dev/null

on GCC to dump all the preprocessor defines. Do we have something similar with the Visual C++ compiler compiler?

I'm using Visual C++ 9.0.

1
@epemient. Thanks. That is what I'm looking for.Surya

1 Answers

4
votes

There is no such command. However, MSDN (both online and offline) lists all the preprocessor defines, both Microsoft specific, standard defined and ANSI defines.