summaryrefslogtreecommitdiffhomepage
path: root/include/mruby.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mruby.h')
-rw-r--r--include/mruby.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/mruby.h b/include/mruby.h
index f33c9cfc0..01e9657cf 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -302,11 +302,6 @@ void mrb_bug(const char *fmt, ...);
#define E_KEY_ERROR (mrb_class_obj_get(mrb, "KeyError"))
-#define NUM2CHR_internal(x) (((mrb_type(x) == MRB_TT_STRING)&&(RSTRING_LEN(x)>=1))?\
- RSTRING_PTR(x)[0]:(char)(mrb_fixnum_number(x)&0xff))
-#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)