From bb3d7949292469c675968e37ffe862201ef25e33 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 3 Feb 2017 06:48:02 +0000 Subject: ensured.c: fix conflict * ext/-test-/exception/ensured.c (exc_raise): get rid of conflict with raise(2) in the standard. [ruby-core:79371] [Bug #13176] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/-test-/exception/ensured.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/-test-') diff --git a/ext/-test-/exception/ensured.c b/ext/-test-/exception/ensured.c index 20423fd..7dcc9b7 100644 --- a/ext/-test-/exception/ensured.c +++ b/ext/-test-/exception/ensured.c @@ -19,7 +19,7 @@ ensured(VALUE module, VALUE object) } static VALUE -raise(VALUE exc) +exc_raise(VALUE exc) { rb_exc_raise(exc); return Qnil; @@ -28,7 +28,7 @@ raise(VALUE exc) static VALUE ensure_raise(VALUE module, VALUE object, VALUE exc) { - return rb_ensure(rb_yield, object, raise, exc); + return rb_ensure(rb_yield, object, exc_raise, exc); } void -- cgit v1.1