This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Defining a CPP macro that defines a macro


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]