• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Macro challenge with variable arguments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Macro challenge with variable arguments (From: Graham Cox <email@hidden>)
 >Re: Macro challenge with variable arguments (From: Gwynne Raskind <email@hidden>)

  • Prev by Date: Re: Macro challenge with variable arguments
  • Next by Date: Re: Macro challenge with variable arguments
  • Previous by thread: Re: Macro challenge with variable arguments
  • Next by thread: Re: Macro challenge with variable arguments
  • Index(es):
    • Date
    • Thread