• 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: Greg Shenaut <email@hidden>
  • Date: Thu, 10 Jan 2008 09:37:56 -0800

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:
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>)

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