"Michael Stefaniuc" <[email protected]> wrote:

+/*
+ * Produce a compile error if we pass a dstlen < 0 to this functions.
+ * BUILD_BUG_ON() shamelessly ripped from the Linux Kernel.
+ */
+#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))

C_ASSERT does a similar thing.

--
Dmitry.


Reply via email to