avoid extra block
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7935 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
07c115102a
commit
0a4c104f50
1 changed files with 8 additions and 4 deletions
|
|
@ -1543,8 +1543,10 @@ public:
|
|||
Printf(f->code, "try {\n");
|
||||
Printf(f->code, " Swig::UnknownExceptionHandler dh;\n");
|
||||
} else {
|
||||
Printf(f->code, "{\n");
|
||||
if (allow_thread) thread_begin_allow(n, f);
|
||||
if (allow_thread) {
|
||||
Printf(f->code, "{\n");
|
||||
thread_begin_allow(n, f);
|
||||
}
|
||||
}
|
||||
|
||||
emit_action(n,f);
|
||||
|
|
@ -1554,8 +1556,10 @@ public:
|
|||
Printf(f->code, " SWIG_fail;\n");
|
||||
Printf(f->code, "}\n");
|
||||
} else {
|
||||
if (allow_thread) thread_end_allow(n, f);
|
||||
Printf(f->code, "}\n");
|
||||
if (allow_thread) {
|
||||
thread_end_allow(n, f);
|
||||
Printf(f->code, "}\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue