swig/Examples/test-suite/python/std_excepttest.i
Marcelo Matus 0017b084aa add std_except.i
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6203 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-09-01 22:23:05 +00:00

22 lines
No EOL
328 B
OpenEdge ABL

%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; }
};
%}