mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
2aaca10505
commit
bb3d794929
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue