Re: macros and defines used in file

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

 



J?drzej Dudkiewicz wrote:

> So, my question is - is there a way to force cpp or gcc (As I believe
> gcc has internal preprocessor, which can do a little more that
> standalone cpp?) to show defines and macros used during file
> preprocessing, even those, who aren't used because '#if' branching
> forbade it? Or is there any other, clever method to do what I want?
> (Clever as in "not by hand" :] ).

Can't you just diff the preprocessed source with and without
COMPONENT_NAME defined?  If the output is identical then its presence
cannot possibly have any semantic effect.

Brian

[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