From b64fc03182e9579aebdb48600577344429b8934b Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 7 Jul 2025 13:36:36 +0900 Subject: [PATCH] kernel.c: simplify mrb_inspect_recursive_p using new recursion detection Replace custom inspect_recursive_p implementation with the new generalized mrb_recursive_method_p for better code reuse and consistency. Co-authored-by: Claude --- src/kernel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel.c b/src/kernel.c index 7a6fda973..ef81bfd42 100644 --- a/src/kernel.c +++ b/src/kernel.c @@ -141,7 +141,7 @@ mrb_recursive_method_p(mrb_state *mrb, mrb_sym mid, mrb_value obj1, mrb_value ob mrb_bool mrb_inspect_recursive_p(mrb_state *mrb, mrb_value obj) { - return inspect_recursive_p(mrb, obj, 0); + return MRB_RECURSIVE_UNARY_P(mrb, MRB_SYM(inspect), obj); } static mrb_value