diff options
| author | take_cheeze <[email protected]> | 2014-06-09 18:47:07 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-06-09 18:47:07 +0900 |
| commit | 4de468e75414eb1adb3bafba19b72caba3a17044 (patch) | |
| tree | 8d353524eefdc174248d385b798dcfd2a7052928 | |
| parent | 64994a176439caadd802db3efbf3fa03fc285bbd (diff) | |
| download | mruby-4de468e75414eb1adb3bafba19b72caba3a17044.tar.gz mruby-4de468e75414eb1adb3bafba19b72caba3a17044.zip | |
Fallback to `mrb_assert` instead of dirty trick.
| -rw-r--r-- | include/mruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mruby.h b/include/mruby.h index c73f7c630..598ff06cf 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -432,7 +432,7 @@ void mrb_atexit(mrb_state *mrb, mrb_atexit_func func); #if __STDC_VERSION__ >= 201112L #define mrb_static_assert(exp, str) _Static_assert(exp, str) #else -#define mrb_static_assert(exp, str) typedef char mrb_static_assert ## __LINE__[exp] +#define mrb_static_assert(exp, str) mrb_assert(exp) #endif mrb_value mrb_format(mrb_state *mrb, const char *format, ...); |
