Whoops, use rb_exc_raise() instead of rb_raise() to re-raise a "live"
exception. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4849 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
60ded6c0c2
commit
543608147d
1 changed files with 1 additions and 1 deletions
|
|
@ -2161,7 +2161,7 @@ public:
|
|||
Printv(rescue->code, Str(tm), "\n", NIL);
|
||||
Printv(rescue->code, "else {\n", NIL);
|
||||
Printf(rescue->code, "%s--;\n", depthCountName);
|
||||
Printv(rescue->code, "rb_raise(error, \"\");\n", NIL);
|
||||
Printv(rescue->code, "rb_exc_raise(error);\n", NIL);
|
||||
Printv(rescue->code, "}", NIL);
|
||||
Printv(rescue->code, "}", NIL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue