diff options
author | jake <jake@FreeBSD.org> | 2002-04-01 21:55:00 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-04-01 21:55:00 +0000 |
commit | 15dc222b823665d63da106fbde3ab6ead56a87a3 (patch) | |
tree | 493b460bc4cbf164ebc2c453a73471911d8857e5 /sys/dev/usb/uhci.c | |
parent | 6bb0c0b2661593317904cfd02cc3036cff3beefd (diff) | |
download | FreeBSD-src-15dc222b823665d63da106fbde3ab6ead56a87a3.zip FreeBSD-src-15dc222b823665d63da106fbde3ab6ead56a87a3.tar.gz |
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
Diffstat (limited to 'sys/dev/usb/uhci.c')
0 files changed, 0 insertions, 0 deletions