cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
what #define are defined
what #define are defined
Aug 2, 2024 at 11:46am UTC
seeplus
(6589)
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 UTC
keskiverto
(10402)
The
cpp
(in GCC) has debug options like
-dM
See
https://gcc.gnu.org/onlinedocs/cpp/Invocation.html
Aug 6, 2024 at 2:32pm UTC
kigar64551
(814)
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 UTC
Aug 6, 2024 at 3:29pm UTC
seeplus
(6589)
Thanks. I missed that one........
Topic archived. No new replies allowed.