summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-03 06:48:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-03 06:48:02 +0000
commitbb3d7949292469c675968e37ffe862201ef25e33 (patch)
treea4d4bd70eb2f819272d7d3b60b6aab408a8eba32 /ext
parent2aaca105058950af2fc1a39c7e5c7cb032c85fff (diff)
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
Diffstat (limited to 'ext')
-rw-r--r--ext/-test-/exception/ensured.c4
1 files changed, 2 insertions, 2 deletions
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