Commit 4de468e7 authored by take_cheeze's avatar take_cheeze

Fallback to `mrb_assert` instead of dirty trick.

parent 64994a17
...@@ -432,7 +432,7 @@ void mrb_atexit(mrb_state *mrb, mrb_atexit_func func); ...@@ -432,7 +432,7 @@ void mrb_atexit(mrb_state *mrb, mrb_atexit_func func);
#if __STDC_VERSION__ >= 201112L #if __STDC_VERSION__ >= 201112L
#define mrb_static_assert(exp, str) _Static_assert(exp, str) #define mrb_static_assert(exp, str) _Static_assert(exp, str)
#else #else
#define mrb_static_assert(exp, str) typedef char mrb_static_assert ## __LINE__[exp] #define mrb_static_assert(exp, str) mrb_assert(exp)
#endif #endif
mrb_value mrb_format(mrb_state *mrb, const char *format, ...); mrb_value mrb_format(mrb_state *mrb, const char *format, ...);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment