summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Matus <mmatus@acms.arizona.edu>2004-09-01 07:24:39 +0000
committerMarcelo Matus <mmatus@acms.arizona.edu>2004-09-01 07:24:39 +0000
commit05c465e72e2ea1415e08c82af6aab290796c2c51 (patch)
treedbb9f00f24795fb2b1c58439e742c1a3619d6a44
parent02bb4b0a6852f3765be19a6ad1c9c89e42991558 (diff)
downloadswig-05c465e72e2ea1415e08c82af6aab290796c2c51.tar.gz
more solaris fixes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6193 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Examples/python/exception/example.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/Examples/python/exception/example.h b/Examples/python/exception/example.h
index 9f137b9a9..aff46568a 100644
--- a/Examples/python/exception/example.h
+++ b/Examples/python/exception/example.h
@@ -20,20 +20,25 @@ class Test {
public:
int simple() throw(int) {
throw(37);
+ return 1;
}
int message() throw(const char *) {
throw("I died.");
+ return 1;
}
int hosed() throw(Exc) {
- throw(Exc(42,"Hosed"));
+ throw(Exc(42,"Hosed"));
+ return 1;
}
int unknown() throw(A) {
- throw A();
+ throw A();
+ return 1;
}
int multi(int x) throw(int, const char *, Exc) {
if (x == 1) throw(37);
if (x == 2) throw("Bleah!");
if (x == 3) throw(Exc(42,"No-go-diggy-die"));
+ return 1;
}
};