diff options
author | June McEnroe <june@causal.agency> | 2019-11-09 09:05:26 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-11-09 09:05:26 -0500 |
commit | a51cab7eed76c28888fef9c0ef1687dc0b295493 (patch) | |
tree | 0170fd0cce5ee5c771aff861a1790ec85b2a6b91 | |
parent | Define macro for bit flag enums (diff) | |
download | pounce-a51cab7eed76c28888fef9c0ef1687dc0b295493.tar.gz pounce-a51cab7eed76c28888fef9c0ef1687dc0b295493.zip |
Avoid the reserved _A names with BIT macro
Diffstat (limited to '')
-rw-r--r-- | bounce.h | 2 |
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; |