diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-03 06:48:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-03 06:48:02 +0000 |
commit | 87f63d4f85183a4dba02130218e05abc6295d471 (patch) | |
tree | a4d4bd70eb2f819272d7d3b60b6aab408a8eba32 /ext/-test-/exception/ensured.c | |
parent | 5f6b1ad4768e18db330cfe8b62f0d66f5c935ead (diff) | |
download | ruby-87f63d4f85183a4dba02130218e05abc6295d471.tar.gz |
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/-test-/exception/ensured.c')
-rw-r--r-- | ext/-test-/exception/ensured.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/-test-/exception/ensured.c b/ext/-test-/exception/ensured.c index 20423fd4c9..7dcc9b78ef 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 |