henesyinit from p9fd787fda5 years agoHistory
25 lines · 371 B · Text
RawDownload
.TH ASSERT 2.SH NAMEassert \- check program invariants.SH SYNOPSIS.B #include <u.h>.br.B #include <libc.h>.PP.B#define assert if(cond);else _assert("cond").PP.Bvoid _assert(int 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