Fixes for $wrapname to work in %exception

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10265 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2008-02-25 22:07:28 +00:00
commit b67e0a28a3
9 changed files with 18 additions and 14 deletions

View file

@ -1771,6 +1771,8 @@ public:
Printf(f->code, "try {\n");
}
Setattr(n, "wrap:name", wname);
emit_action(n, f);
if (director_method) {
@ -1948,7 +1950,6 @@ public:
if (current == CONSTRUCTOR_ALLOCATE) {
create_command(n, symname);
} else {
Setattr(n, "wrap:name", wname);
if (!Getattr(n, "sym:nextSibling"))
dispatchFunction(n);
}