Skip to content

Instantly share code, notes, and snippets.

@deltheil
Created January 12, 2012 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deltheil/1601327 to your computer and use it in GitHub Desktop.
Save deltheil/1601327 to your computer and use it in GitHub Desktop.
GCC - list all the macros defined during the execution of the preprocessor
# -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