CONSISTENCY(3) Library Functions Manual CONSISTENCY(3)

ASSERT_CONSISTENCYconsistency verification macros

#include <libks/consistency.h>

ASSERT_CONSISTENCY(a, b);

The consistency macros can be used to verify certain properties at runtime.

The () 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.

Anton Lindqvist <anton@basename.se>

OpenBSD 7.8 March 26, 2023 CONSISTENCY(3)