diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/cpp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/cpp.h b/src/common/cpp.h index dc0c208..2305b29 100644 --- a/src/common/cpp.h +++ b/src/common/cpp.h @@ -47,5 +47,12 @@ #define SIZE_T_MAXLEN strlen(XSTR(LONG_MAX)) +/** + * Emprunt au noyau Linux (cf. include/linux/bug.h) pour les vérifications à la compilation. + */ + +#define BUILD_BUG_ON(cond) (((void)sizeof(char[1 - 2 * !!(cond)]))) + + #endif /* _COMMON_CPP_H */ |