I am working on a big C project with MSVC compiler cl.exe
. Many code are conditioned on macro definitions. So is it possible to generate an effective list of defined macros as the side output of the compilation process. So I can know which part of the code are active for the compile.
ADD 1
The thread mentioned in the comment doesn't solve my problem. It only shows how to get the intermediate pre-processing results of each source file. But what I want is an effective list of defined macros for the whole project.
I need this because some C projects need to be configured before compilation. And the configuration is carried out by defining/un-defining various macros. If I had a final effective list of defined macros, I can easily see if I configured the projects correctly.