summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-09-02 13:03:32 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-09-02 13:03:32 +0900
commit471c43ff965ae46b040daa0cda77a491a6f480af (patch)
treecf672fcfd2ea407eb6776020a91c81db5ceb81f3 /include
parent7c49d56ce679d658f9a279e7975208ef6576e57f (diff)
downloadmruby-471c43ff965ae46b040daa0cda77a491a6f480af.tar.gz
mruby-471c43ff965ae46b040daa0cda77a491a6f480af.zip
move mrb_proc_new_cfunc_with_env() to the core
Diffstat (limited to 'include')
-rw-r--r--include/mruby/proc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mruby/proc.h b/include/mruby/proc.h
index 6c2bf913c..fe5a1d2f6 100644
--- a/include/mruby/proc.h
+++ b/include/mruby/proc.h
@@ -61,7 +61,9 @@ MRB_API 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 */
MRB_API struct RProc *mrb_proc_new_cfunc_with_env(mrb_state*, mrb_func_t, mrb_int, const mrb_value*);
-MRB_API mrb_value mrb_cfunc_env_get(mrb_state*, mrb_int);
+MRB_API mrb_value mrb_proc_cfunc_env_get(mrb_state*, mrb_int);
+/* old name */
+#define mrb_cfunc_env_get(mrb, idx) mrb_proc_cfunc_env_get(mrb, idx)
#include "mruby/khash.h"
KHASH_DECLARE(mt, mrb_sym, struct RProc*, TRUE)