• 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: Multiline using #define
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiline using #define


  • Subject: Re: Multiline using #define
  • From: Mark Dalrymple <email@hidden>
  • Date: Sun, 6 Jun 2004 11:54:38 -0400

> How to define a constant using #define, which is replaced
> by multiple lines of something.

Do you mean something like

#define someRatherOddThing(x,y) \
do { \
frobulate (x); \
badgerBadgerMushroom (y); \
} while (0)

?

Or are you talking about multiline literal strings, like

char *blah = "hello there "
"greeble bork "
"fnords everywhere!";
printf ("%s\n", blah);
?

Cheers
++Mark Dalrymple, email@hidden http://borkware.com
Live in Western Pennsylvania? Next CocoaHeads Thursday June 10th. cocoaheads.org
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Multiline using #define (From: David Reed <email@hidden>)
 >Re: Multiline using #define (From: Stefan Pantke <email@hidden>)

  • Prev by Date: Re: very sluggish editing
  • Next by Date: Re: NSObjectController HELP
  • Previous by thread: Re: Multiline using #define
  • Next by thread: Getting Items From MainMenu
  • Index(es):
    • Date
    • Thread