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:
Logan Johnson 2003-06-03 17:53:24 +00:00
commit f0990f47e5

View file

@ -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);