diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-04 05:15:58 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-04 05:15:58 +0900 |
| commit | a354aca8b4897278a0a0d5681a09aec458ce89d1 (patch) | |
| tree | 77e6aa47319f2d0143226c2494ddf3ad9c86f3e8 /include | |
| parent | 902dd6380317e73b7dc99b64e04a75ac47fa5db0 (diff) | |
| download | mruby-a354aca8b4897278a0a0d5681a09aec458ce89d1.tar.gz mruby-a354aca8b4897278a0a0d5681a09aec458ce89d1.zip | |
remove NUM2CHR macro
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 5 |
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) |
