From 4de468e75414eb1adb3bafba19b72caba3a17044 Mon Sep 17 00:00:00 2001 From: take_cheeze Date: Mon, 9 Jun 2014 18:47:07 +0900 Subject: Fallback to `mrb_assert` instead of dirty trick. --- include/mruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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, ...); -- cgit v1.2.3