Created
January 12, 2012 16:05
-
-
Save deltheil/1601327 to your computer and use it in GitHub Desktop.
GCC - list all the macros defined during the execution of the preprocessor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -E is for preprocessor only | |
# -dM tells GCC to generate a list of #define directives | |
# e.g. | |
# #define __APPLE__ 1 | |
# #define __SSE2__ 1 | |
# #define __GNUC__ 4 | |
# ... | |
gcc -E -dM - < /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment