Jake Burkholder d86b2422b9 Move the CTASSERT macro from MD code to systm.h alongside KASSERT so other
code can use it.  This takes a single constant argument and fails to compile
if it is 0 (false).  The main application of this is to make assertions about
structure sizes at compile time, in order to validate assumptions made in
other code.  Examples:

CTASSERT(sizeof(struct foo) == FOO_SIZEOF);
CTASSERT(sizeof(struct foo) == (1 << FOO_SHIFT));

Requested by:	jhb, phk
2002-04-01 21:55:00 +00:00
..
2002-03-20 05:00:21 +00:00
2002-04-01 19:25:22 +00:00
2002-03-20 05:14:42 +00:00
2002-04-01 21:52:45 +00:00
2002-03-21 18:49:23 +00:00
2002-03-25 08:02:54 +00:00
2002-03-20 02:39:27 +00:00
2002-03-20 02:39:27 +00:00
2002-03-20 02:39:27 +00:00
2002-03-20 10:12:07 +00:00
2002-03-19 22:20:14 +00:00
2002-04-01 19:22:04 +00:00