Re: Multiline using #define
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.