1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/dist/tools/coccinelle/warn/enable_debug.cocci
2020-11-02 21:49:40 +01:00

17 lines
243 B
Plaintext

// ENABLE_DEBUG must not use parenthesis to be compatible with IS_ACTIVE
@@
constant C;
@@
- #define ENABLE_DEBUG (C)
+ #define ENABLE_DEBUG C
// make sure that ENABLE_DEBUG is zero
@@
@@
- #define ENABLE_DEBUG 1
+ #define ENABLE_DEBUG 0