From 66d2079d3c074b55b030f9f05722d12fdd3d4f7c Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Mon, 10 Mar 2003 02:46:53 +0000 Subject: [PATCH] Added comment about GNU-style variadic preprocessor macros (now supported). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4484 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Doc/Manual/Preprocessor.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Doc/Manual/Preprocessor.html b/Doc/Manual/Preprocessor.html index 3ef1f43c3..d1e2c4677 100644 --- a/Doc/Manual/Preprocessor.html +++ b/Doc/Manual/Preprocessor.html @@ -201,7 +201,7 @@ The SWIG macro capability is a very quick and easy way to generate large amounts many of SWIG's advanced features and libraries are built using this mechanism (such as C++ template support). -

6.6 C99 Extensions

+

6.6 C99 and GNU Extensions

SWIG-1.3.12 and newer releases support variadic preprocessor macros. For example: @@ -234,6 +234,15 @@ To get rid of the extra comma, use ## like this: +

+SWIG also supports GNU-style variadic macros. For example: + +

+
+#define DEBUGF(fmt, args...)  fprintf(stdout,fmt,args)
+
+
+ Comment: It's not entirely clear how variadic macros might be useful to interface building. However, they are used internally to implement a number of SWIG directives and are provided to make SWIG more compatible with C99 code. @@ -297,6 +306,6 @@ SWIG will strip the extra % and leave the preprocessor directive in the


-
SWIG 1.3 - Last Modified : May 25, 2002
+
SWIG 1.3 - Last Modified : March 9, 2003
\ No newline at end of file