Re: variadic variable argument list in #define
Re: variadic variable argument list in #define
- Subject: Re: variadic variable argument list in #define
- From: Ben Dougall <email@hidden>
- Date: Tue, 10 Feb 2004 17:48:17 +0000
On Tuesday, February 10, 2004, at 04:44 pm, Marten van Gelderen wrote:
Hello Ben,
Try (right from the Cocoa docs):
#define myDebug(format, args...) fprintf(stderr, format, args)
Martin, yup you're right. now works fine. in my case it was:
#define f(args...) function(args,NULL)
but the main thing was 'args...' and 'args', not '...' and
'__VA_ARGS__'.
thanks very much, ben.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.