mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
kernel.c: remove mrb_inspect_recursive_p(); #5531
And use mrb_recursive_method_p() and its helper methods. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -636,7 +636,7 @@ mrb_obj_iv_inspect(mrb_state *mrb, struct RObject *obj)
|
||||
mrb_str_cat_lit(mrb, str, ":");
|
||||
mrb_str_cat_str(mrb, str, mrb_ptr_to_str(mrb, obj));
|
||||
|
||||
if (mrb_inspect_recursive_p(mrb, mrb_obj_value(obj))) {
|
||||
if (MRB_RECURSIVE_UNARY_P(mrb, MRB_SYM(inspect), mrb_obj_value(obj))) {
|
||||
mrb_str_cat_lit(mrb, str, " ...>");
|
||||
return str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user