From e59742f9c6c1f5f10b90d33af92a8dc6159c9609 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Tue, 3 Jun 2003 17:53:24 +0000 Subject: [PATCH] Corrected an error for exception handling in Ruby's director implementation. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4855 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/ruby.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index bf89ff6e1..310ee82ab 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -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);