RE: how to warn on unused preprocessor defines...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> If it's the second case you can use a simple tool such as grep to get a list of all defines (filter ^#define ..)

Or use the preprocessor to generate the list of #define for you:

gcc -E -dM Foo.c | sort > Foo.dM

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux