xref: /plan9/sys/man/2/assert (revision ec59a3ddbfceee0efe34584c2c9981a5e5ff1ec4)
ASSERT 2
NAME
assert - check program invariants
SYNOPSIS
#include <u.h>

#include <libc.h>

#define assert(cond) if(cond);else _assert("cond")

void _assert(int cond)

DESCRIPTION
Assert is a preprocessor macro that (via _assert ) prints a message and calls abort when cond is false.
SOURCE
/sys/src/libc/port/_assert.c