Re: #define xxx #define yyy 123
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com In message <200801101209.m0AC9Yi1014695@rs34.luxsci.com>, "charlie" writes:
How do you get a define to be allowed within a define....
You don't.
#define xxx #define yyy 123
Can't be done, at all.
More specifically, what I'm trying to do is this:
#define begin_enumerations #pragma options enum=4
This can be done. However, you can't do it like this. You are lookping for _Pragma(options enum=4), which is new in C99 specifically because what you want was impossible in C89.
Is there some way to force the preprocessor to make a second pass?
Not like this, no. -s _______________________________________________ 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
seebs@seebs.net