Removed redundant catch(...) { throw; } code generation when wrapping exception specifications and throws typemap.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5646 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-01-19 21:34:58 +00:00
commit 62e094fe92

View file

@ -402,7 +402,7 @@ void emit_action(Node *n, Wrapper *f) {
Printf(eaction,"try {\n"); Printf(eaction,"try {\n");
} }
Printv(eaction, action, "\n",NIL); Printv(eaction, action, NIL);
if (throws) { if (throws) {
Printf(eaction,"}\n"); Printf(eaction,"}\n");
@ -415,10 +415,10 @@ void emit_action(Node *n, Wrapper *f) {
} else { } else {
Swig_warning(WARN_TYPEMAP_THROW, Getfile(n), Getline(n), Swig_warning(WARN_TYPEMAP_THROW, Getfile(n), Getline(n),
"No 'throw' typemap defined for exception type '%s'\n", SwigType_str(Getattr(ep,"type"),0)); "No 'throw' typemap defined for exception type '%s'\n", SwigType_str(Getattr(ep,"type"),0));
}
}
Printf(eaction,"catch(...) { throw; }\n"); Printf(eaction,"catch(...) { throw; }\n");
} }
}
}
/* Look for except typemap (Deprecated) */ /* Look for except typemap (Deprecated) */
tm = Swig_typemap_lookup_new("except",n,"result",0); tm = Swig_typemap_lookup_new("except",n,"result",0);