summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-31 11:45:45 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-31 11:45:45 +0900
commit2c3530ff10f477c09145fc7ab79cd87432acccaf (patch)
treeabe38a6c48e7fc9d560ee85131fda77a24c693c7 /include
parentd1e755df0fd86e349107334594595e1a5f8f6ac1 (diff)
parentbf6b1dfe216976f1adb7f41a74f20339fedcbec8 (diff)
downloadmruby-2c3530ff10f477c09145fc7ab79cd87432acccaf.tar.gz
mruby-2c3530ff10f477c09145fc7ab79cd87432acccaf.zip
Merge pull request #1985 from take-cheeze/cfunc_with_env
Add API to define cfunc Proc with userdata.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/proc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index 474cf0142..bb924447e 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -55,6 +55,10 @@ 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);
+/* following functions are defined in mruby-proc-ext so please include it when using */
+struct RProc *mrb_proc_new_cfunc_with_env(mrb_state*, mrb_func_t, mrb_int, const mrb_value*);
+mrb_value mrb_cfunc_env_get(mrb_state*, mrb_int);
+
#include "mruby/khash.h"
KHASH_DECLARE(mt, mrb_sym, struct RProc*, 1)