Corrected an error for exception handling in Ruby's director implementation.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4855 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e7ef1380e8
commit
f0990f47e5
1 changed files with 0 additions and 2 deletions
|
|
@ -2159,11 +2159,9 @@ public:
|
|||
Replaceall(tm, "$error", "error");
|
||||
Printf(rescue->code, "if (%s == 0) ", depthCountName);
|
||||
Printv(rescue->code, Str(tm), "\n", NIL);
|
||||
Printv(rescue->code, "else {\n", NIL);
|
||||
Printf(rescue->code, "%s--;\n", depthCountName);
|
||||
Printv(rescue->code, "rb_exc_raise(error);\n", NIL);
|
||||
Printv(rescue->code, "}", NIL);
|
||||
Printv(rescue->code, "}", NIL);
|
||||
|
||||
// Main code
|
||||
Wrapper_add_localv(w, "args", "swig_body_args", "args", NIL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue