summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-04-20 00:55:06 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-04-20 00:55:06 -0700
commitb2cf6e79c04736554eea4aeb60b5aa0ae543c2d7 (patch)
tree2f03475e903bbf4463b65a69e480c3c37a09b357 /include/mruby.h
parent7b1bfa6228462edbb058a1d7927c2df31dda1af9 (diff)
parentc999e4762a8aea83bc253af4a4954919bb47934a (diff)
downloadmruby-b2cf6e79c04736554eea4aeb60b5aa0ae543c2d7.tar.gz
mruby-b2cf6e79c04736554eea4aeb60b5aa0ae543c2d7.zip
Merge pull request #8 from unak/c-spec
Please respect the specification of C
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);