Defining a CPP macro that defines a macro

Ian Lance Taylor iant@google.com
Tue Nov 7 19:57:00 GMT 2006


Kristis Makris <kristis.makris@asu.edu> writes:

> I'm having a hard time defining a macro that defines another macro. I
> tried escaping and using trigraphs, but they don't seem to be what I
> need. Is this even possible ? Or am I trying to do something I
> shouldn't ?

It is impossible for one preprocessor macro to #define another
preprocessor macro.

Ian



More information about the Gcc-help mailing list