Added comment about GNU-style variadic preprocessor macros (now supported).

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-10 02:46:53 +00:00
commit 93dbb266f8

View file

@ -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).
<a name="n7"></a><H2>6.6 C99 Extensions</H2>
<a name="n7"></a><H2>6.6 C99 and GNU Extensions</H2>
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 <tt>##</tt> like this:
</pre>
</blockquote>
<p>
SWIG also supports GNU-style variadic macros. For example:
<blockquote>
<pre>
#define DEBUGF(fmt, args...) fprintf(stdout,fmt,args)
</pre>
</blockquote>
<b>Comment:</b> 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 <tt>%</tt> and leave the preprocessor directive in the
<p><hr>
<address>SWIG 1.3 - Last Modified : May 25, 2002</address>
<address>SWIG 1.3 - Last Modified : March 9, 2003</address>
</body>
</html>