skip to content

Gcc/Clang: Predefined Preprocessor Directives

Sometimes, when discovering a new toolchain based on GNU-Gcc or Clang, it’s useful to discover what preprocessor directives are defined by the compiler:

$ gcc -E -dM - < /dev/null | less

or

$ clang -E -dM - < /dev/null | less