Re: cpp help

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

 



Yaniv S. wrote:
Is there a way to use CPP to help me?

There is no easy way to get the info you want from the preprocessor. It doesn't work that way.

You can use -E -dM to get a list of macro defined. This will include system and compiler defined macros. The macros will be expanded, but not evaluated, so you will have to manually perform some arithmetic to get the numbers you want.

Simpler might be to write a simple C file that prints out the macro values you want.

Jim

[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