X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/3618811496a6d131fd4bffa19e262c521d39e819..2f2cb6647cc52037b361d54e46c7c75ebef1c125:/utils/macros.h?ds=sidebyside diff --git a/utils/macros.h b/utils/macros.h index a5263e1..45420e2 100644 --- a/utils/macros.h +++ b/utils/macros.h @@ -51,7 +51,7 @@ #define GLUE(x, y) MLIB__GLUE(x, y) #ifdef static_assert -# define STATIC_ASSERT(cond, msg) static_assert(cond, msg) +# define STATIC_ASSERT(cond, msg) static_assert(!!(cond), msg) #else # define STATIC_ASSERT(cond, msg) \ IGNORABLE extern char static_assert_failed[2*!!(cond) - 1]