Re: capture #define value?
Re: capture #define value?
- Subject: Re: capture #define value?
- From: Chris Espinosa <email@hidden>
- Date: Sat, 30 Jan 2010 19:58:36 -0800
On Jan 30, 2010, at 6:59 PM, Matt Neuburg wrote: On or about 1/30/10 11:53 AM, thus spake "Chris Espinosa" <email@hidden>:
#define QUOTE "
#ifdef MACROVALUE
NSLog("%@", @QUOTE##MACROVALUE##QUOTE);
(Off the top of my head; code not compiled)
Unfortunately that didn't work (it doesn't compile, even after supplying the missing first @). m.
Actually reading the page I linked, apparantly to do quoted string pasting you just need #MACROVALUE
NSLog(@"%@", @#MACROVALUE);
Chris |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden