change name to lib_std_except.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6264 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7cdf043367
commit
e53e5171b0
2 changed files with 21 additions and 22 deletions
21
SWIG/Examples/test-suite/python/lib_std_except.i
Normal file
21
SWIG/Examples/test-suite/python/lib_std_except.i
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
%module lib_std_except
|
||||
|
||||
%include "std_except.i"
|
||||
|
||||
|
||||
%inline %{
|
||||
struct E1 : public std::exception
|
||||
{
|
||||
};
|
||||
|
||||
struct E2
|
||||
{
|
||||
};
|
||||
|
||||
struct Test {
|
||||
int foo1() throw(std::bad_exception) { return 0; }
|
||||
int foo2() throw(std::logic_error) { return 0; }
|
||||
int foo3() throw(E1) { return 0; }
|
||||
int foo4() throw(E2) { return 0; }
|
||||
};
|
||||
%}
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
%module std_execpt
|
||||
|
||||
%include "std_except.i"
|
||||
|
||||
|
||||
%inline %{
|
||||
struct E1 : public std::exception
|
||||
{
|
||||
};
|
||||
|
||||
struct E2
|
||||
{
|
||||
};
|
||||
|
||||
struct Test {
|
||||
|
||||
int foo1() throw(std::exception) { return 0; }
|
||||
int foo2() throw(std::logic_error) { return 0; }
|
||||
int foo3() throw(E1) { return 0; }
|
||||
int foo4() throw(E2) { return 0; }
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue