home *** CD-ROM | disk | FTP | other *** search
- /*
- * assert.h -- ANSI
- *
- * Diagnostic facilities.
- *
- * Copyright (c) 1990, MetaWare Incorporated
- */
-
- #ifdef NDEBUG
- /* if NDEBUG defined then assert does nothing */
- #define assert(ignore) ((void)0)
-
- #else
- #include <stdio.h>
- #define assert(expression) \
- (!(expression) ? \
- fprintf(stderr,"assertion failed in file %s at line %d.\n",\
- __FILE__, __LINE__), abort(), 0 : 0)
- #endif
-