From: William F. <wsf...@us...> - 2004-08-30 16:39:06
|
Update of /cvsroot/swig/SWIG/Doc/Manual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2441/Doc/Manual Modified Files: Preface.html Preprocessor.html Log Message: Added info about SWIG_VERSION preprocessor macro Index: Preface.html =================================================================== RCS file: /cvsroot/swig/SWIG/Doc/Manual/Preface.html,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Preface.html 12 Aug 2004 20:54:32 -0000 1.8 --- Preface.html 30 Aug 2004 16:38:55 -0000 1.9 *************** *** 154,164 **** If you are a previous user of SWIG, don't expect recent versions of SWIG to provide backwards compatibility. In fact, backwards compatibility issues may arise even between successive 1.3.x releases. ! Although these incompatibilities are regretable, SWIG-1.3 is an active development project. The primary goal of this effort is to make SWIG better---a process that would simply be impossible if the developers are constantly bogged down with backwards compatibility issues. <p> --- 154,166 ---- + <p> If you are a previous user of SWIG, don't expect recent versions of SWIG to provide backwards compatibility. In fact, backwards compatibility issues may arise even between successive 1.3.x releases. ! Although these incompatibilities are regrettable, SWIG-1.3 is an active development project. The primary goal of this effort is to make SWIG better---a process that would simply be impossible if the developers are constantly bogged down with backwards compatibility issues. + </p> <p> *************** *** 167,170 **** --- 169,194 ---- added---namespaces, templates, smart pointers, overloaded methods, operators, and more. + </p> + + + <p> + If you need to work with different versions of SWIG and backwards + compatibility is an issue, you can use the SWIG_VERSION preprocessor + symbol which holds the version of SWIG being executed. + SWIG_VERSION is a hexadecimal integer such as 0x010311 (corresponding to SWIG-1.3.11). + This can be used in an interface file to define different typemaps, take + advantage of different features etc: + </p> + + <blockquote><pre> + #if SWIG_VERSION >= 0x010311 + /* Use some fancy new feature */ + #endif + </pre></blockquote> + + <p> + Note: The version symbol is not defined in the generated SWIG + wrapper file. The SWIG preprocessor has defined SWIG_VERSION since SWIG-1.3.11. + </p> <H2><a name="Preface_nn10"></a>1.9 Credits</H2> Index: Preprocessor.html =================================================================== RCS file: /cvsroot/swig/SWIG/Doc/Manual/Preprocessor.html,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** Preprocessor.html 4 Aug 2004 21:28:12 -0000 1.8 --- Preprocessor.html 30 Aug 2004 16:38:55 -0000 1.9 *************** *** 89,92 **** --- 89,94 ---- SWIGMAC Defined when running SWIG on the Macintosh SWIGWIN Defined when running SWIG under Windows + SWIG_VERSION Hexadecimal number containing SWIG version, + such as 0x010311 (corresponding to SWIG-1.3.11). SWIGCHICKEN Defined when using CHICKEN |