16 Sep
2009
16 Sep
'09
9:41 p.m.
"Michael Stefaniuc" <mstefani(a)redhat.com> 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.