NAME
ASSERT_CONSISTENCY —
consistency verification
macros
SYNOPSIS
#include
<libks/consistency.h>
ASSERT_CONSISTENCY(a,
b);
DESCRIPTION
The consistency macros can be used to verify certain properties at runtime.
The
ASSERT_CONSISTENCY()
macro verifies that the two expressions a and
b are equal. If not, the calling process is terminated
and a diagnostic message is written to stderr.
The consistency macros can be disabled at compile time by passing
the -DNDEBUG option to the compiler.
AUTHORS
Anton Lindqvist <anton@basename.se>