This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[wwwdocs] gcc-4.3/changes.html -- introduce new __COUNTER__ macro
- From: "Ollie Wild" <aaw at google dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>
- Cc: "Gerald Pfeifer" <gerald at pfeifer dot com>
- Date: Tue, 11 Sep 2007 13:08:56 -0700
- Subject: [wwwdocs] gcc-4.3/changes.html -- introduce new __COUNTER__ macro
Adds a blurb about the new __COUNTER__ macro.
Ollie
Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-4.3/changes.html,v
retrieving revision 1.69
diff -u -r1.69 changes.html
--- changes.html 9 Sep 2007 21:58:12 -0000 1.69
+++ changes.html 11 Sep 2007 20:03:33 -0000
@@ -230,6 +230,13 @@
<code>0B</code>, followed by a sequence of 0 and 1 digits.
</li>
+ <li>
+ A new predefined macro <code>__COUNTER__</code> has been added.
+ It expands to sequential integral values starting from 0. In
+ conjunction with the <code>##</code> operator, this provides a
+ convenient means to generate unique identifiers.
+ </li>
+
</ul>
<h3>C++</h3>