about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-11-09 09:05:26 -0500
committerJune McEnroe <june@causal.agency>2019-11-09 09:05:26 -0500
commita51cab7eed76c28888fef9c0ef1687dc0b295493 (patch)
tree0170fd0cce5ee5c771aff861a1790ec85b2a6b91
parentDefine macro for bit flag enums (diff)
downloadpounce-a51cab7eed76c28888fef9c0ef1687dc0b295493.tar.gz
pounce-a51cab7eed76c28888fef9c0ef1687dc0b295493.zip
Avoid the reserved _A names with BIT macro
Diffstat (limited to '')
-rw-r--r--bounce.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bounce.h b/bounce.h
index c523227..aa7fda1 100644
--- a/bounce.h
+++ b/bounce.h
@@ -30,7 +30,7 @@
 #define SOURCE_URL "https://code.causal.agency/june/pounce"
 #define ORIGIN "irc.invalid"
 
-#define BIT(x) x##Bit, x = 1 << x##Bit, _##x##Bit = x##Bit
+#define BIT(x) x##Bit, x = 1 << x##Bit, x##Bit_ = x##Bit
 #define ARRAY_LEN(a) (sizeof(a) / sizeof(a[0]))
 
 typedef unsigned char byte;