Re: #define xxx #define yyy 123
Re: #define xxx #define yyy 123
- Subject: Re: #define xxx #define yyy 123
- From: Greg Shenaut <email@hidden>
- Date: Thu, 10 Jan 2008 09:37:56 -0800
How do you get a define to be allowed within a define....
#define xxx #define yyy 123
Isn't this the kind of thing people have done very often using a tool
like sed? For example, let the string __XXX__ stand for "#define yyy
123" and then filtering the source files before the compilation
process begins with something like 's/^ *__XXX__/\#define yyy 123/'. I
think that would be much easier that trying to make multiple cpp
passes. Of course, putting the definitions inside the source file
would complicate things, but it would still be doable.
Greg Shenaut
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden