assert

From: Romulus.. Imp of Phoenix Mud (malice@epix.net)
Date: 03/14/96


I was wondering why circle uses the 'assert()' function call....
Isnt it about the worse way you can handle errors in code that is expected
to stay up? I found this function call all over the code...

NAME
       assert - Abort the program if assertion is false.

SYNOPSIS
       #include <assert.h>

       void assert (int expression);

DESCRIPTION
       assert()  prints  an  error message to standard output and
       terminates the program by calling abort() if expression is
       false  (i.e.  nonzero).   This only happens when the macro
       NDEBUG is undefined.

RETURN VALUE
       No value is returned.



--
|\      /|
| \    / |
|  \  /  |
|   \/   |
|        |
|        | alice@epix.net
           Enough Said...



This archive was generated by hypermail 2b30 : 12/07/00 PST