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



In message <email@hidden>, "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      (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>)



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.