• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: #define xxx #define yyy 123
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #define xxx #define yyy 123


  • Subject: Re: #define xxx #define yyy 123
  • From: email@hidden (Peter Seebach)
  • Date: Thu, 10 Jan 2008 07:49:52 -0600

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:

This email sent to email@hidden

References: 
 >#define xxx #define yyy 123 (From: "charlie" <email@hidden>)

  • Prev by Date: Re: A Bug in pthread_cond_destroy?
  • Next by Date: IOKit: Unable to catch shutdown for power management(QA 1340)
  • Previous by thread: #define xxx #define yyy 123
  • Next by thread: Re: #define xxx #define yyy 123
  • Index(es):
    • Date
    • Thread