mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
UNREACHABLE_RETURN
* include/ruby/ruby.h (UNREACHABLE_RETURN): UNREACHABLE at the end of non-void functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c78945751f
commit
97e05dad7f
23 changed files with 40 additions and 33 deletions
|
@ -5,7 +5,7 @@ iter_break(VALUE self)
|
|||
{
|
||||
rb_iter_break();
|
||||
|
||||
UNREACHABLE;
|
||||
UNREACHABLE_RETURN(Qnil);
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
@ -13,7 +13,7 @@ iter_break_value(VALUE self, VALUE val)
|
|||
{
|
||||
rb_iter_break_value(val);
|
||||
|
||||
UNREACHABLE;
|
||||
UNREACHABLE_RETURN(Qnil);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue