mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use RB_INTEGER_TYPE_P
This commit is contained in:
parent
6de61fb9ed
commit
ffe4a6ebf9
1 changed files with 6 additions and 1 deletions
|
@ -119,7 +119,12 @@ f_abs(VALUE x)
|
||||||
return rb_funcall(x, id_abs, 0);
|
return rb_funcall(x, id_abs, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
fun1(integer_p)
|
|
||||||
|
inline static VALUE
|
||||||
|
f_integer_p(VALUE x)
|
||||||
|
{
|
||||||
|
return RB_INTEGER_TYPE_P(x);
|
||||||
|
}
|
||||||
|
|
||||||
inline static VALUE
|
inline static VALUE
|
||||||
f_to_i(VALUE x)
|
f_to_i(VALUE x)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue