From: Marcelo M. <mar...@us...> - 2006-01-28 03:11:55
|
Update of /cvsroot/swig/SWIG/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28905/Lib Modified Files: swig.swg Log Message: implement the 'allowexcept' feature for global variables Index: swig.swg =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/swig.swg,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** swig.swg 24 Jan 2006 17:51:53 -0000 1.76 --- swig.swg 28 Jan 2006 03:11:47 -0000 1.77 *************** *** 79,83 **** /* the %exception directive */ - #ifdef SWIGCSHARP #define %exception %feature("except", canthrow=1) --- 79,82 ---- *************** *** 88,99 **** #define %clearexception %feature("except","") ! /* the %catches directive */ #define %catches(tlist...) %feature("catches","("`tlist`")") #define %clearcatches %feature("catches","") /* the %exceptionclass directive */ - #define %exceptionclass %feature("exceptionclass") #define %noexceptionclass %feature("exceptionclass","0") --- 87,113 ---- #define %clearexception %feature("except","") + /* the %allowexception directive allows the %exception feature to + be applied to set/get variable methods */ + #define %allowexception %feature("allowexcept") + #define %noallowexception %feature("allowexcept","0") + #define %clearallowexception %feature("allowexcept","") ! /* the %exceptionvar directive, as %exception but it is only applied ! to set/get variable methods. You don't need to use the ! %allowexception directive when using %exceptionvar. ! */ ! #ifdef SWIGCSHARP ! #define %exceptionvar %feature("exceptvar", canthrow=1) ! #else ! #define %exceptionvar %feature("exceptvar") ! #endif ! #define %noexceptionvar %feature("exceptvar","0") ! #define %clearexceptionvar %feature("exceptvar","") + /* the %catches directive */ #define %catches(tlist...) %feature("catches","("`tlist`")") #define %clearcatches %feature("catches","") /* the %exceptionclass directive */ #define %exceptionclass %feature("exceptionclass") #define %noexceptionclass %feature("exceptionclass","0") *************** *** 101,105 **** /* the %newobject directive */ - #define %newobject %feature("new") #define %nonewobject %feature("new","0") --- 115,118 ---- *************** *** 107,111 **** /* the %delobject directive */ - #define %delobject %feature("del") #define %nodelobject %feature("del","0") --- 120,123 ---- *************** *** 113,117 **** /* the %refobject/%unrefobject directives */ - #define %refobject %feature("ref") #define %norefobject %feature("ref","0") --- 125,128 ---- *************** *** 123,127 **** /* Directives for callback functions (experimental) */ - #define %callback(x) %feature("callback",`x`) #define %nocallback %feature("callback","0") --- 134,137 ---- |