summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-01-30 23:23:16 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-01-30 23:23:16 (GMT)
commit62f178cc3dcc889d56ba6d94f6fc8bba7b503c1a (patch)
tree9d0a95ea433a42351ae7aa783356aa2e30a39f34 /src/common
parentc1ca03be00a4e975f89d30edfb72b57fb5612282 (diff)
Compressed some architecture instruction properties.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cpp.h7
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 */