RE: "Statement with no effect" warning
RE: "Statement with no effect" warning
- Subject: RE: "Statement with no effect" warning
- From: "Michael Stauffer" <email@hidden>
- Date: Tue, 26 Jun 2007 12:07:23 -0400
- Importance: Normal
> -----Original Message-----
> From: glenn andreas [mailto:email@hidden]
> Sent: Friday, June 22, 2007 10:55 AM
> To: Michael Stauffer
> Cc: XCode Apple List
> Subject: Re: "Statement with no effect" warning
...
> If the thing is has a variable number of parameters such as:
>
> void LogDebug(const char *fmt, ...)
>
> you can use the following:
>
> #define LogDebug(...)
>
> to define a pre processor macro that has a variable number of
> parameters (which, in this case, is again swallowed and ignored) -
> see <http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html>
Thanks Glenn, this is what I've been needing! I wish I'd thought to look for
a var arg list Macro years ago. :)
Cheers,
Michael
_______________________________________________
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