Compiler Directive to List Defined Macros?
Bolan Meek
Bolan.Meek@wcom.com
Wed Jun 28 07:35:00 GMT 2000
Franz Sirl wrote:
>
> At 15:42 28.06.00, Bolan Meek wrote:
> >Greetings: God bless you.
> >
> >I've searched `info gcc` and the mailing list archives,
> >but have found nothing on this:
> >
> >Is there any compiler directive that will cause a listing
> >of defined macros to be printed to stdout or stderr?
> >A #pragma something, perhaps?
>
> Try
>
> gcc -E -ansi -dM - </dev/null
>
> Franz.
Thanks; I tried it. It looks like it supplies pre-defined
macros; I was hoping for a compiler directive that would
also spit out the macros that have been defined in the
source code, during compilation.
Maybe I should send this in as a 'wishlist' item.
More information about the Gcc
mailing list