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