From: Marcelo M. <mar...@us...> - 2006-01-28 03:38:36
|
Update of /cvsroot/swig/SWIG/Examples/test-suite In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3602/Examples/test-suite Modified Files: exception_order.i Log Message: implement the 'allowexcept' feature for global variables Index: exception_order.i =================================================================== RCS file: /cvsroot/swig/SWIG/Examples/test-suite/exception_order.i,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** exception_order.i 21 Jan 2006 08:05:56 -0000 1.10 --- exception_order.i 28 Jan 2006 03:38:27 -0000 1.11 *************** *** 35,39 **** --- 35,46 ---- + %allowexception efoovar; + %allowexception A::efoovar; + %inline %{ + int efoovar; + int foovar; + const int cfoovar = 1; + struct E1 { *************** *** 55,58 **** --- 62,70 ---- struct A { + static int sfoovar; + static const int csfoovar = 1; + int foovar; + int efoovar; + /* caught by the user's throw definition */ int foo() throw(E1) *************** *** 91,94 **** --- 103,107 ---- } }; + int A::sfoovar = 1; %} |