mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user