Main index | Section 9 | 日本語 | Options |
#include <sys/param.h>
#include <sys/systm.h>
The CTASSERT() macro evaluates expression at compile time and causes a compiler error if it is false.
The CTASSERT() macro is useful for asserting the size or alignment of important data structures and variables during compilation, which would otherwise cause the code to fail at run time.
CTASSERT(sizeof(struct uuid) == 16);
CTASSERT (9) | August 1, 2015 |
Main index | Section 9 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | There are 10 types of people in the world: those who understand binary, and those who don't. | ” |