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-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-03-24 11:25:46 +00:00
2002-03-31 20:48:13 +00:00
2002-04-01 05:41:33 +00:00
2002-03-20 05:00:21 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 19:25:22 +00:00
2002-03-26 13:42:09 +00:00
2002-03-20 05:14:42 +00:00
2002-03-23 11:53:03 +00:00
2002-04-01 21:52:45 +00:00
2002-04-01 21:31:13 +00:00
2002-03-31 22:37:00 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-03-21 18:49:23 +00:00
2002-03-25 08:02:54 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-03-20 02:39:27 +00:00
2002-03-20 02:39:27 +00:00
2002-04-01 21:31:13 +00:00
2002-03-20 02:39:27 +00:00
2002-04-01 21:31:13 +00:00
2002-03-20 10:12:07 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00
2002-03-23 18:27:16 +00:00
2002-03-19 22:20:14 +00:00
2002-03-31 07:15:28 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:55:00 +00:00
2002-04-01 21:55:00 +00:00
2002-04-01 19:22:04 +00:00
2002-04-01 21:31:13 +00:00
2002-04-01 21:31:13 +00:00