[cpp,doc] PATCH for Re: CPP documentation minor typo
Gerald Pfeifer
gerald@pfeifer.com
Mon Apr 2 16:04:00 GMT 2018
On Tue, 20 Feb 2018, Bogdan Harjoc wrote:
> __VA_OPT__ was documented after 7.3.0 and the eprintf example for it
> ends with two backslashes instead of one:
>
> https://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html
Thank you for reporting this, Bogdan.
I just fixed this per the patch below.
Gerald
2018-04-02 Gerald Pfeifer <gerald@pfeifer.com>
* doc/cpp.texi (Variadic Macros): Fix line continuation in an
example.
Index: doc/cpp.texi
===================================================================
--- doc/cpp.texi (revision 259011)
+++ doc/cpp.texi (working copy)
@@ -1710,7 +1710,7 @@
not have any tokens, the @code{@w{__VA_OPT__}} expands to nothing:
@smallexample
-#define eprintf(format, @dots{}) \\
+#define eprintf(format, @dots{}) \
fprintf (stderr, format __VA_OPT__(,) __VA_ARGS__)
@end smallexample
More information about the Gcc
mailing list