Printing all the pre defined gcc macros
26.10.2007 at 22:50
Another thing which is quite useful when dealing with preprocessor issues is a list of all compiler defined macros. So here you go.
gcc -dM -E - < /dev/nullMarc
Comments (3)
Thanks!
07.05.2008 by
Nikolodeon
I've searching for a commandline like this! thankyou
Thanks too!
26.07.2008 by
Alex Telea
This is great. I spent >5 hours trying to find out how to do that.. Alex
Alternative
01.10.2010 by
Vlad Lazarenko
(vlad[at]lazarenko[dot]me)
You can also do "cpp -dM </dev/null", which invokes preprocessor directly.
1
