define_method to copy block body

This commit is contained in:
Yukihiro Matsumoto
2012-08-03 20:17:04 +09:00
parent 77aa261f3b
commit 730f53045e
3 changed files with 11 additions and 7 deletions
+1
View File
@@ -49,6 +49,7 @@ struct RProc {
struct RProc *mrb_proc_new(mrb_state*, mrb_irep*);
struct RProc *mrb_proc_new_cfunc(mrb_state*, mrb_func_t);
struct RProc *mrb_closure_new(mrb_state*, mrb_irep*);
void mrb_proc_copy(struct RProc *a, struct RProc *b);
#include "mruby/khash.h"
KHASH_DECLARE(mt, mrb_sym, struct RProc*, 1);