Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #define xxx #define yyy 123



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >#define xxx #define yyy 123 (From: "charlie" <email@hidden>)
 >Re: #define xxx #define yyy 123 (From: Terry Lambert <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.