site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com How do you get a define to be allowed within a define.... Greg Shenaut _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... #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. This email sent to site_archiver@lists.apple.com