C/C++: list of macro definitions?

Neil Booth neil@daikokuya.co.uk
Thu Nov 7 12:03:00 GMT 2002


Eljay Love-Jensen wrote:-

> -E -Wp,-dM
> 
> Cool!  Thanks Jakub!

Or just -E -dM
 
> Is there a way to dump out only the UTILIZED (ones that are expanded 
> somewhere) macros?

No.  -Wunused-macros does a bit of the reverse; it tells you which
ones were unused that were also defined in the main file.  3.3 only.

> And can it display where (file & line) the expansion occurs?

No.

Neil.



More information about the Gcc mailing list