Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
From: Stefan Fritsch (sfsfritsch.de)
Date: Fri May 03 2013 - 02:35:26 CDT
I think a CTASSERT macro like in FreeBSD would be nice. It could be used
to verify assumptions about type and struct sizes.
This should work on gcc 2.9.5, too, but I haven't tested it.
-138,6 +138,9 abs(int j)
+#define CTASSERT(x) extern char _ctassert[(x) ? 1 : -1 ] \
/* Prototypes for non-quad routines. */
void __assert(const char *, const char *, int, const char *)