diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby.h | 4 | ||||
| -rw-r--r-- | include/mruby/khash.h | 2 | ||||
| -rw-r--r-- | include/mruby/value.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/include/mruby.h b/include/mruby.h index 19ddf96de..1085756fd 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -231,11 +231,11 @@ void mrb_gc_arena_restore(mrb_state*,int); void mrb_gc_mark(mrb_state*,struct RBasic*); #define mrb_gc_mark_value(mrb,val) do {\ if (mrb_type(val) >= MRB_TT_OBJECT) mrb_gc_mark((mrb), mrb_object(val));\ -} while (0); +} while (0) void mrb_field_write_barrier(mrb_state *, struct RBasic*, struct RBasic*); #define mrb_field_write_barrier_value(mrb, obj, val) do{\ if ((val.tt >= MRB_TT_OBJECT)) mrb_field_write_barrier((mrb), (obj), mrb_object(val));\ -} while (0); +} while (0) void mrb_write_barrier(mrb_state *, struct RBasic*); mrb_value mrb_check_convert_type(mrb_state *mrb, mrb_value val, mrb_int type, const char *tname, const char *method); diff --git a/include/mruby/khash.h b/include/mruby/khash.h index dc298baf1..9eddc0bb3 100644 --- a/include/mruby/khash.h +++ b/include/mruby/khash.h @@ -41,7 +41,7 @@ static const uint8_t __m[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; v |= v >> 8;\ v |= v >> 16;\ v++;\ -} while (0); +} while (0) /* declare struct kh_xxx and kh_xxx_funcs diff --git a/include/mruby/value.h b/include/mruby/value.h index ab56c9795..4e90aca9c 100644 --- a/include/mruby/value.h +++ b/include/mruby/value.h @@ -55,7 +55,7 @@ typedef struct mrb_value { #define MRB_SET_VALUE(o, ttt, attr, v) do {\ (o).tt = ttt;\ (o).attr = v;\ -} while (0); +} while (0) static inline mrb_value mrb_float_value(mrb_float f) @@ -131,7 +131,7 @@ typedef struct mrb_value { #define MRB_SET_VALUE(o, tt, attr, v) do {\ (o).ttt = mrb_mktt(tt);\ (o).attr = v;\ -} while (0); +} while (0) static inline mrb_value mrb_float_value(mrb_float f) |
