Fixes for director code with exception specifications on the destructor (director_exception.i testcase)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
553422a11e
commit
b89d4b0eb8
1 changed files with 2 additions and 2 deletions
|
|
@ -2118,14 +2118,14 @@ public:
|
|||
// Get any exception classes in the throws typemap
|
||||
ParmList *throw_parm_list = 0;
|
||||
|
||||
if ((throw_parm_list = Getattr(n,"throws"))) {
|
||||
if ((throw_parm_list = Getattr(n,"throws")) || Getattr(n,"throw")) {
|
||||
Parm *p;
|
||||
int gencomma = 0;
|
||||
|
||||
Append(w->def, " throw(");
|
||||
Append(declaration, " throw(");
|
||||
|
||||
Swig_typemap_attach_parms("throws", throw_parm_list, 0);
|
||||
if (throw_parm_list) Swig_typemap_attach_parms("throws", throw_parm_list, 0);
|
||||
for (p = throw_parm_list; p; p=nextSibling(p)) {
|
||||
if ((tm = Getattr(p,"tmap:throws"))) {
|
||||
if (gencomma++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue