cpp help
Jim Wilson
wilson@tuliptree.org
Thu Apr 3 16:49:00 GMT 2008
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
More information about the Gcc-help
mailing list