From: Marcelo M. <mar...@us...> - 2005-09-29 13:05:43
|
Update of /cvsroot/swig/SWIG/Lib/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26882/Lib/python Modified Files: std_except.i Log Message: add %exceptionclass and %noexceptionclass directives and manage the feature:exceptionclass in a consistent way Index: std_except.i =================================================================== RCS file: /cvsroot/swig/SWIG/Lib/python/std_except.i,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** std_except.i 27 Jul 2005 20:09:41 -0000 1.4 --- std_except.i 29 Sep 2005 13:04:41 -0000 1.5 *************** *** 6,24 **** %} namespace std { ! /* Mark all of them as exception classes */ ! %feature("exceptionclass") exception; ! %feature("exceptionclass") bad_exception; ! %feature("exceptionclass") logic_error; ! %feature("exceptionclass") domain_error; ! %feature("exceptionclass") invalid_argument; ! %feature("exceptionclass") length_error; ! %feature("exceptionclass") out_of_range; ! %feature("exceptionclass") runtime_error; ! %feature("exceptionclass") range_error; ! %feature("exceptionclass") overflow_error; ! %feature("exceptionclass") underflow_error; } namespace std { struct exception --- 6,32 ---- %} + + namespace std { ! /* ! Mark all of std exception classes as "exception classes" via ! the "exceptionclass" feature. ! ! If needed, you can disable it by using %noexceptionclass. ! */ ! %exceptionclass exception; ! %exceptionclass bad_exception; ! %exceptionclass logic_error; ! %exceptionclass domain_error; ! %exceptionclass invalid_argument; ! %exceptionclass length_error; ! %exceptionclass out_of_range; ! %exceptionclass runtime_error; ! %exceptionclass range_error; ! %exceptionclass overflow_error; ! %exceptionclass underflow_error; } + namespace std { struct exception |