From 068cbef61c8f685d64f888ad5bc9847829610065 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Mon, 7 Jan 2013 16:14:45 +0900 Subject: Add check for using cdump with DISABLE_STDIO option. --- include/mruby/cdump.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mruby/cdump.h b/include/mruby/cdump.h index 14a365081..6afbb985e 100644 --- a/include/mruby/cdump.h +++ b/include/mruby/cdump.h @@ -12,7 +12,11 @@ extern "C" { #endif #include "mruby.h" -#include +#ifdef DISABLE_STDIO +# error "Configuration conflict. Can't use with DISABLE_STDIO option." +#else +# include +#endif int mrb_cdump_irep(mrb_state *mrb, int n, FILE *f,const char *initname); -- cgit v1.2.3 From af75d8de2ca6b3eda97c588334b15920e856a53b Mon Sep 17 00:00:00 2001 From: Daniel Bovensiepen Date: Tue, 8 Jan 2013 10:07:15 +0800 Subject: Export mrb_ary_clear in array.h --- include/mruby/array.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/mruby/array.h b/include/mruby/array.h index 2857ec75d..c5959bbe6 100644 --- a/include/mruby/array.h +++ b/include/mruby/array.h @@ -55,6 +55,7 @@ mrb_value mrb_ary_new4(mrb_state *mrb, int n, const mrb_value *elts); mrb_value mrb_assoc_new(mrb_state *mrb, mrb_value car, mrb_value cdr); mrb_value mrb_ary_entry(mrb_value ary, int offset); mrb_value mrb_ary_shift(mrb_state *mrb, mrb_value self); +mrb_value mrb_ary_clear(mrb_state *mrb, mrb_value self); #if defined(__cplusplus) } /* extern "C" { */ -- cgit v1.2.3