From a58611dfb1bfc74fb1a51a9cd0ca8ac690c2f1f4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 24 May 2022 16:48:34 +0900 Subject: Allow to just warn as bool expected, without an exception --- internal/object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/object.h') diff --git a/internal/object.h b/internal/object.h index f560fb7f9f..88f3a44bc6 100644 --- a/internal/object.h +++ b/internal/object.h @@ -22,7 +22,7 @@ double rb_num_to_dbl(VALUE val); VALUE rb_obj_dig(int argc, VALUE *argv, VALUE self, VALUE notfound); VALUE rb_immutable_obj_clone(int, VALUE *, VALUE); VALUE rb_check_convert_type_with_id(VALUE,int,const char*,ID); -int rb_bool_expected(VALUE, const char *); +int rb_bool_expected(VALUE, const char *, int raise); static inline void RBASIC_CLEAR_CLASS(VALUE obj); static inline void RBASIC_SET_CLASS_RAW(VALUE obj, VALUE klass); static inline void RBASIC_SET_CLASS(VALUE obj, VALUE klass); -- cgit v1.2.1