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:
parent
e0232cc23b
commit
62e094fe92
1 changed files with 2 additions and 2 deletions
|
|
@ -402,7 +402,7 @@ void emit_action(Node *n, Wrapper *f) {
|
|||
Printf(eaction,"try {\n");
|
||||
}
|
||||
|
||||
Printv(eaction, action, "\n",NIL);
|
||||
Printv(eaction, action, NIL);
|
||||
|
||||
if (throws) {
|
||||
Printf(eaction,"}\n");
|
||||
|
|
@ -415,9 +415,9 @@ void emit_action(Node *n, Wrapper *f) {
|
|||
} else {
|
||||
Swig_warning(WARN_TYPEMAP_THROW, Getfile(n), Getline(n),
|
||||
"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) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue