From 675fd3dc801f17a4e81aa1bd15925500246fd5e5 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 1 Mar 2014 18:13:10 +0900 Subject: allow send method not to call mrb_funcall if calling method is implemented in Ruby; fix #1680 ref #1765 --- include/mruby/proc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/mruby/proc.h b/include/mruby/proc.h index 602b52288..474cf0142 100644 --- a/include/mruby/proc.h +++ b/include/mruby/proc.h @@ -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) -- cgit v1.2.3