Re: capture #define value?
Re: capture #define value?
- Subject: Re: capture #define value?
- From: Jens Alfke <email@hidden>
- Date: Sat, 30 Jan 2010 22:23:16 -0800
On Jan 30, 2010, at 9:04 PM, Matt Neuburg wrote:
>> NSLog(@"%@", @#MACROVALUE);
>
> That doesn't compile either.
Try
NSLog(@"%@", @"" #MACROVALUE);
which works because adjacent string literals get joined together, and the first one is an (empty) NSString so the result is an NSString.
—Jens _______________________________________________
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