From a354aca8b4897278a0a0d5681a09aec458ce89d1 Mon Sep 17 00:00:00 2001 From: Yukihiro Matz Matsumoto Date: Sun, 4 Nov 2012 05:15:58 +0900 Subject: remove NUM2CHR macro --- include/mruby.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'include/mruby.h') 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) -- cgit v1.2.3