static VALUE cmp_between(VALUE x, VALUE min, VALUE max) { if (RTEST(cmp_lt(x, min))) return Qfalse; if (RTEST(cmp_gt(x, max))) return Qfalse; return Qtrue; }
static mrb_value cmp_gt_m(mrb_state *mrb, mrb_value x) { mrb_value y; mrb_get_args(mrb, "o", &y); return cmp_gt(mrb, x, y); }
static mrb_value cmp_between(mrb_state *mrb, mrb_value x) { mrb_value min, max; mrb_get_args(mrb, "oo", &min, &max); if (mrb_test(cmp_lt(mrb, x, min))) return mrb_false_value(); if (mrb_test(cmp_gt(mrb, x, max))) return mrb_false_value(); return mrb_true_value(); }