Re: newie question
Re: newie question
- Subject: Re: newie question
- From: Steve Checkoway <email@hidden>
- Date: Mon, 8 Dec 2008 17:18:36 -0800
On Mon, Dec 08, 2008 at 09:21:07AM -0500, Bryan Henry wrote:
> The macro, by the way, would be something like this:
>
> // Debug-build logging macro
> #ifdef DEBUG
> #define debugLog(format, ...) NSLog(format, __VA_ARGS__)
> #else
> #define debugLog(format, ...) // Nothing
> #endif
You probably want
#define debugLog(format, ...) NSLog((format), ## __VA_ARGS__)
--
Steve Checkoway
_______________________________________________
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