add %exceptionclass and %noexceptionclass directives and manage the feature:exceptionclass in a consistent way
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3119b1e40e
commit
33a752b0bd
4 changed files with 28 additions and 14 deletions
|
|
@ -5,21 +5,29 @@
|
|||
#include <stdexcept>
|
||||
%}
|
||||
|
||||
|
||||
|
||||
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;
|
||||
/*
|
||||
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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue