aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print.c b/print.c
index 95a324a..e74fad8 100644
--- a/print.c
+++ b/print.c
@@ -32,7 +32,7 @@
#define FLAG(FLAG)\
do {\
- _Static_assert((FLAG) != 0);\
+ _Static_assert((FLAG) != 0, #FLAG" is 0 and must not be included");\
if (flags & (FLAG)) {\
p = stpcpy(p, "|"#FLAG);\
flags ^= (FLAG);\
@@ -46,7 +46,7 @@
} while (0)
#define FLAGS_END_DEFAULT(FLAG)\
- _Static_assert((FLAG) == 0);\
+ _Static_assert((FLAG) == 0, #FLAG" is not 0 and cannot be the default");\
if (!flags && !*buf)\
sprintf(p, "|%s", #FLAG);\
else if (flags || !*buf)\