From 543608147da19e08808ecd94d7cd4786ae2a1908 Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Mon, 2 Jun 2003 21:46:56 +0000 Subject: [PATCH] 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 --- Source/Modules/ruby.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index bcdfab10e..bf89ff6e1 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -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);