[try Beta version]
Not logged in

 
what #define are defined

Aug 2, 2024 at 11:46am
Within VS or other, for each source file of a solution/project is there a way of obtaining a list of all #define symbols (including within #include files) and the value of the defined symbols?
Aug 2, 2024 at 12:52pm
The cpp (in GCC) has debug options like -dM
See https://gcc.gnu.org/onlinedocs/cpp/Invocation.html
Aug 6, 2024 at 2:32pm
This should work for MSVC:
cl.exe /PD /Zc:preprocessor test.c

See also here for /PD option:
https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-alphabetically?view=msvc-170
Last edited on Aug 6, 2024 at 2:32pm
Aug 6, 2024 at 3:29pm
Thanks. I missed that one........
Topic archived. No new replies allowed.