This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33877] Request for __VA_ARGC__
- From: "Dave at Yost dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jul 2008 18:33:40 -0000
- Subject: [Bug c/33877] Request for __VA_ARGC__
- References: <bug-33877-15255@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from Dave at Yost dot com 2008-07-23 18:33 -------
This feature enables the declaration (via macro) of a variadic function that
requires neither an argument containing a count of the number of variadic
arguments (which is busywork clutter prone to unchecked error) nor an
out-of-band trailing value (which is clutter at best and an impossibility at
worst).
#define foo(...) realFoo(__VA_ARGC__, __VA_ARGS__)
void realFoo(int argc, ...) {
..
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33877