(C) 1998 AROS - The Amiga Research OS


NAME
#include <assert.h>

void assert ()

SYNOPSIS
expr

FUNCTION
Evaluates the expression expr and if it's FALSE or NULL, then printf a message and stops the program. The message will contain the expression, the name of the file with the assert in it and the line in the file.

INPUTS
expr
The expression to evaluate. The type of the expression does not matter, only if its zero/NULL or not.

RESULT
The function doesn't return.

EXAMPLE
// Make sure that x equals 1
assert (x==1);
SEE ALSO

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
13.07.1997 iaint
Assert is now more compatible, and also works
13.12.1996 digulla
New function assert() (incomplete)