diff options
Diffstat (limited to 'src/localconsts.h')
-rw-r--r-- | src/localconsts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/localconsts.h b/src/localconsts.h index 560e5f152..628584a45 100644 --- a/src/localconsts.h +++ b/src/localconsts.h @@ -150,6 +150,12 @@ #define FOR_EACHP(type, iter, array) for (type iter = array->begin(), \ iter##_end = array->end(); iter != iter##_end; ++ iter) +#ifdef ENABLE_CHECKPLUGIN +#define A_NONNULLPOINTER __attribute__((nonnullpointer)) +#else +#define A_NONNULLPOINTER +#endif + #ifdef ENABLE_CHECKS #define CHECKLISTENERS \ |