diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-02-14 00:22:12 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-02-14 00:22:12 +0900 |
| commit | 30aa5218543cd44df7c1d90a5c10cf6f622f5a8a (patch) | |
| tree | ad1bf7f27553f551563fce4ae80db0c2bcd831c8 /include/mruby.h | |
| parent | 719f700adf7598d0ad910dcd3a94aad2ef354033 (diff) | |
| download | mruby-30aa5218543cd44df7c1d90a5c10cf6f622f5a8a.tar.gz mruby-30aa5218543cd44df7c1d90a5c10cf6f622f5a8a.zip | |
Do not use mrb_funcall() if Hash#default is not overridden; ref #3421
This change reduces the recursion level, but does not solve the stack
overflow issue entirely.
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h index 99d06146f..6950cf904 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -1147,6 +1147,7 @@ MRB_API mrb_value mrb_attr_get(mrb_state *mrb, mrb_value obj, mrb_sym id); MRB_API mrb_bool mrb_respond_to(mrb_state *mrb, mrb_value obj, mrb_sym mid); MRB_API mrb_bool mrb_obj_is_instance_of(mrb_state *mrb, mrb_value obj, struct RClass* c); +MRB_API mrb_bool mrb_func_basic_p(mrb_state *mrb, mrb_value obj, mrb_sym mid, mrb_func_t func); /* |
