Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/man/2/assert – Rev 34

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
.TH ASSERT 2
2
.SH NAME
3
assert \- check program invariants
4
.SH SYNOPSIS
5
.B #include <u.h>
6
.br
7
.B #include <libc.h>
8
.PP
9
.B
10
#define assert(cond) if(cond);else _assert("cond")
11
.PP
12
.B
13
void _assert(char* cond)
14
.SH DESCRIPTION
15
.I Assert
16
is a preprocessor macro that
17
(via
18
.IR _assert )
19
prints a message and calls
20
.I abort
21
when
22
.I cond
23
is false.
24
.SH SOURCE
25
.B /sys/src/libc/port/_assert.c