From a31ec93aa7944687ff1c436e35aacef473d0c6cd Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 17 Mar 2003 16:52:37 +0000 Subject: [PATCH] Comment out Ruby code for "fail" tag. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4560 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/ruby/ruby.swg | 2 +- Source/Modules/ruby.cxx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/ruby/ruby.swg b/Lib/ruby/ruby.swg index ef10f4921..749d46381 100644 --- a/Lib/ruby/ruby.swg +++ b/Lib/ruby/ruby.swg @@ -8,7 +8,7 @@ %runtime "common.swg" /* Exception handling in wrappers */ -#define SWIG_fail goto fail +/* #define SWIG_fail goto fail */ #ifdef SWIG_NOINCLUDE %runtime "rubydec.swg" diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index 5f6924711..77e87d216 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -873,9 +873,11 @@ public: } /* Error handling code */ + /* Printf(f->code,"fail:\n"); Printv(f->code,cleanup,NIL); Printv(f->code,"return Qnil;\n",NIL); + */ Printf(f->code,"}\n"); /* Substitute the cleanup code */