Jan 22 2010
Display list of all predefined macros in GCC
Something I always forget and have to look up.
1) Print predefined macros:
gcc -dM -E - </dev/null | sort | less
2) Print predefined macros and macros introduced by a specific header
echo “#include <stdlib.h>” > foo.h
gcc -dM -E foo.h | sort | less
Reference for -dM is in the cpp man page.
