• 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: "Statement with no effect" warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Statement with no effect" warning


  • Subject: Re: "Statement with no effect" warning
  • From: "Jens Ayton" <email@hidden>
  • Date: Wed, 27 Jun 2007 11:01:27 +0200

Thomas Engelmeier:
Michael Stauffer:
Glenn Andreas:

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. :)

Keep in mind it is non-standard.

Actually, the __VA_ARGS__ variant, without the ## extension, is standard C99.


-- Jens Ayton

Sed quis custodiet ipsos custodes?
_______________________________________________
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


References: 
 >RE: "Statement with no effect" warning (From: "Michael Stauffer" <email@hidden>)
 >Re: "Statement with no effect" warning (From: Thomas Engelmeier <email@hidden>)

  • Prev by Date: Re: "Statement with no effect" warning
  • Next by Date: Re: Problem with XCode Auto Indent
  • Previous by thread: Re: "Statement with no effect" warning
  • Next by thread: Crash report doesn't list function names?
  • Index(es):
    • Date
    • Thread