summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authormimaki <[email protected]>2012-04-20 16:57:43 +0900
committermimaki <[email protected]>2012-04-20 16:57:43 +0900
commit4be3ca52090c6e3fde54c9678079eb1c02fc6862 (patch)
tree02d2b13e8496df1f227ca2c4855f121d12d0fc20 /include/mruby.h
parentd67cd99b47a57dc3bf28af0b3bdc42d2eb887f03 (diff)
parentdc2c98ab4c01135bee7349bd364535f6d3d211e6 (diff)
downloadmruby-4be3ca52090c6e3fde54c9678079eb1c02fc6862.tar.gz
mruby-4be3ca52090c6e3fde54c9678079eb1c02fc6862.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 506158d3c..123f802ad 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -441,11 +441,14 @@ void mrb_bug(const char *fmt, ...);
#ifdef __GNUC__
# define NUM2CHR(x) __extension__ ({mrb_value num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
#else
+/* TODO: there is no definitions of RSTRING_* here, so cannot compile.
static inline char
NUM2CHR(mrb_value x)
{
return NUM2CHR_internal(x);
}
+*/
+#define NUM2CHR(x) NUM2CHR_internal(x)
#endif
mrb_value mrb_io_gets(mrb_state *mrb, mrb_value);
mrb_value mrb_io_getbyte(mrb_state *mrb, mrb_value);