mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
kernel.c: prepare for new recursive inspect check
Like previous recursive `<=>` check, scan call stack to detect recursive `inspect` calls. We no longer need incomplete `_inspect` hack to pass around a hash table to record objects currently inspecting.
This commit is contained in:
@@ -12,6 +12,8 @@ void mrb_ary_decref(mrb_state*, mrb_shared_array*);
|
||||
mrb_value mrb_ary_subseq(mrb_state *mrb, mrb_value ary, mrb_int beg, mrb_int len);
|
||||
#endif
|
||||
|
||||
mrb_bool mrb_inspect_recursive_p(mrb_state *mrb, mrb_value self);
|
||||
|
||||
#ifdef MRUBY_CLASS_H
|
||||
struct RClass *mrb_vm_define_class(mrb_state*, mrb_value, mrb_value, mrb_sym);
|
||||
struct RClass *mrb_vm_define_module(mrb_state*, mrb_value, mrb_sym);
|
||||
|
||||
Reference in New Issue
Block a user