]> Savannah Git Hosting - gnulib.git/commitdiff
doc: Document portability of __VA_ARGS__.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Oct 2023 22:55:14 +0000 (00:55 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Oct 2023 22:55:14 +0000 (00:55 +0200)
* doc/gnulib-readme.texi (C99 features assumed): Add a note about
__VA_ARGS__.

ChangeLog
doc/gnulib-readme.texi

index 253f32208dc13b86ea59b9cc4c31bd5ba344b149..02531f08f6fc525ee5ea4cfe96df78b02011ae00 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-10-03  Bruno Haible  <bruno@clisp.org>
+
+       doc: Document portability of __VA_ARGS__.
+       * doc/gnulib-readme.texi (C99 features assumed): Add a note about
+       __VA_ARGS__.
+
 2023-10-03  Bruno Haible  <bruno@clisp.org>
 
        ilogb: Document a Mac OS X bug.
index d65360536bacb74e3e82e550d6dd373e9f8a68f6..a08d3c0100fe3831bbe7dccef31231324344dac5 100644 (file)
@@ -377,7 +377,11 @@ it directly, preferring plain @code{bool} via the
 Compound literals and designated initializers.
 
 @item
-Variadic macros.
+Variadic macros.@*
+@findex __VA_ARGS__
+Note: The handling of @code{__VA_ARGS__} in MSVC differs from the one
+in ISO C 99, see @url{https://stackoverflow.com/questions/5134523/}.
+But usually this matters only for macros that decompose @code{__VA_ARGS__}.
 
 @item
 @code{static inline} functions.