allow send method not to call mrb_funcall if calling method is implemented in Ruby; fix #1680 ref #1765

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-01 18:13:10 +09:00
parent 8e170ce915
commit 675fd3dc80
4 changed files with 66 additions and 30 deletions
+3
View File
@@ -52,6 +52,9 @@ struct RProc *mrb_closure_new(mrb_state*, mrb_irep*);
struct RProc *mrb_closure_new_cfunc(mrb_state *mrb, mrb_func_t func, int nlocals);
void mrb_proc_copy(struct RProc *a, struct RProc *b);
/* implementation of #send method */
mrb_value mrb_f_send(mrb_state *mrb, mrb_value self);
#include "mruby/khash.h"
KHASH_DECLARE(mt, mrb_sym, struct RProc*, 1)