Re: Macro challenge with variable arguments
Re: Macro challenge with variable arguments
- Subject: Re: Macro challenge with variable arguments
- From: Graham Cox <email@hidden>
- Date: Fri, 02 Nov 2012 13:54:06 +1100
Ah, thanks guys! That works great :)
--Graham
On 02/11/2012, at 1:46 PM, Gwynne Raskind <email@hidden> wrote:
> #if LOGGING
> #define GCLOGOC(format, ...) GCLogObjCMethod(self, _cmd, __LINE__, NSStringFromClass([self class]), format, ## __VA_ARGS__)
> #else
> #define GCLOGOC(format, ...)
> #endif
>
> -- Gwynne Raskind
>
> Look up __VA_ARGS__. I think you can build what you want that way.
>
>
> --
> Greg Parker email@hidden Runtime Wrangler
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden