.TH ASSERT 2.SH NAMEassert \- check program invariants.SH SYNOPSIS.B #include <u.h>.br.B #include <libc.h>.PP.B#define assert(cond) if(cond);else _assert("cond").PP.Bvoid _assert(char* cond).SH DESCRIPTION.I Assertis a preprocessor macro that(via.IR _assert )prints a message and calls.I abortwhen.I condis false..SH SOURCE.B /sys/src/libc/port/_assert.c
.TH ASSERT 2
.SH NAME
assert \- check program invariants
.SH SYNOPSIS
.B #include <u.h>
.br
.B #include <libc.h>
.PP
.B
#define assert(cond) if(cond);else _assert("cond")
.PP
.B
void _assert(char* cond)
.SH DESCRIPTION
.I Assert
is a preprocessor macro that
(via
.IR _assert )
prints a message and calls
.I abort
when
.I cond
is false.
.SH SOURCE
.B /sys/src/libc/port/_assert.c