Visual C++ dump preprocessor defines
问题 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: There is no such command. However, MSDN (both online and offline) lists all the preprocessor defines, both Microsoft specific, standard defined and ANSI defines. 来源: https://stackoverflow.com/questions/4640267/visual-c-dump