Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
|
Public APIs related to rb_mComparable. More...
Go to the source code of this file.
Functions | |
int | rb_cmpint (VALUE, VALUE, VALUE) |
void | rb_cmperr (VALUE, VALUE) |
Public APIs related to rb_mComparable.
RBIMPL
or rbimpl
are implementation details. Don't take them as canon. They could rapidly appear then vanish. The name (path) of this header file is also an implementation detail. Do not expect it to persist at the place it is now. Developers are free to move it anywhere anytime at will. __VA_ARGS__
is always available. We assume C99 for ruby itself but we don't assume languages of extension libraries. They could be written in C++98. Definition in file compar.h.
Definition at line 28 of file compar.c.
References BUILTIN_TYPE, PRIsVALUE, rb_eArgError, rb_inspect(), rb_obj_class(), rb_raise(), SPECIAL_CONST_P, and T_FLOAT.
Referenced by rb_cmpint(), and rb_num_coerce_relop().
Definition at line 2930 of file bignum.c.
References BIGZEROP, FIX2LONG, FIXNUM_P, INT2FIX, NIL_P, RB_BIGNUM_TYPE_P, rb_cmperr(), rb_funcall(), and RTEST.