From e53e5171b0f106367b520f50661bfab235d3975e Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 26 Sep 2004 00:51:59 +0000 Subject: [PATCH] change name to lib_std_except.i git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6264 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- .../test-suite/python/lib_std_except.i | 21 ++++++++++++++++++ .../test-suite/python/std_excepttest.i | 22 ------------------- 2 files changed, 21 insertions(+), 22 deletions(-) create mode 100644 SWIG/Examples/test-suite/python/lib_std_except.i delete mode 100644 SWIG/Examples/test-suite/python/std_excepttest.i diff --git a/SWIG/Examples/test-suite/python/lib_std_except.i b/SWIG/Examples/test-suite/python/lib_std_except.i new file mode 100644 index 000000000..5bc54a916 --- /dev/null +++ b/SWIG/Examples/test-suite/python/lib_std_except.i @@ -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; } + }; +%} diff --git a/SWIG/Examples/test-suite/python/std_excepttest.i b/SWIG/Examples/test-suite/python/std_excepttest.i deleted file mode 100644 index 79ae1039b..000000000 --- a/SWIG/Examples/test-suite/python/std_excepttest.i +++ /dev/null @@ -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; } - }; -%} \ No newline at end of file