dist/coccinelle: adapt rules for ENABLE_DEBUG

This commit is contained in:
Bas Stottelaar 2020-10-26 00:18:39 +01:00
parent a76cb4ea2f
commit 0c8df9bb3c
2 changed files with 16 additions and 5 deletions

View File

@ -0,0 +1,16 @@
// 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

View File

@ -1,5 +0,0 @@
@@
@@
- #define ENABLE_DEBUG (1)
+ #define ENABLE_DEBUG (0)