On Feb 10, 2015, at 6:23 PM, demetri <demetri.spanos@xxxxxxxxx> wrote: >> "gcc -dM -E file.c" will write to stdout the current set of preprocessor >> symbols, after preprocessing file.c and anything it #includes. The same >> will work for clang, icc and (I think) the HP and portland group compiler. > > Steve, you are my hero for the day. I suspected something like this must > exist but I couldn't find it in the GCC/clang docs (I realize it must be > there, > but web searches did not get me anywhere useful). Glad I could help! You might want to look at what https://github.com/bdowning/lj-cdefdb does too. > If you're ever in the San Francisco area I owe you coffee or a drink. I'm down in Palo Alto, so we'll probably run into each other at some point. :) Cheers, Steve