summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2014-04-10 17:34:38 +0900
committertake_cheeze <[email protected]>2014-04-10 17:34:38 +0900
commit9f24cd6d796dd022c3a0f4d129e407e0fa2daba5 (patch)
treeef58658138675fd4551a6acb1d0d6fa3f846bb18 /include
parent847b7c5e19b649bbf8c3a86e7ebd6eef06e490eb (diff)
downloadmruby-9f24cd6d796dd022c3a0f4d129e407e0fa2daba5.tar.gz
mruby-9f24cd6d796dd022c3a0f4d129e407e0fa2daba5.zip
Qualify mrb_yield_*'s argv `const`.
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 0ed701983..edf478f18 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -366,8 +366,8 @@ void mrb_print_error(mrb_state *mrb);
#define E_KEY_ERROR (mrb_class_get(mrb, "KeyError"))
mrb_value mrb_yield(mrb_state *mrb, mrb_value b, mrb_value arg);
-mrb_value mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv);
-mrb_value mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb_value self, struct RClass *c);
+mrb_value mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, const mrb_value *argv);
+mrb_value mrb_yield_with_class(mrb_state *mrb, mrb_value b, int argc, const mrb_value *argv, mrb_value self, struct RClass *c);
void mrb_gc_protect(mrb_state *mrb, mrb_value obj);
mrb_value mrb_to_int(mrb_state *mrb, mrb_value val);