home *** CD-ROM | disk | FTP | other *** search
- /* assert.h 4.1 83/05/03 */
-
- #ifndef assert_h
- #define assert_h
- #ifndef FILE
- #include <stdio.h>
- #endif
-
- # ifdef lint
- # define assert(ex) {int xlintx; xlintx = (ex); xlintx = xlintx;}
- # define _assert(ex) {int xlintx; xlintx = (ex); xlintx = xlintx;}
- # else
- # ifndef NDEBUG
- extern char EMassertMessage[];
- # define _assert(ex) {if (!(ex)){printf(\
- EMassertMessage, "ex", __FILE__, __LINE__); abort();}}
- # define assert(ex) {if (!(ex)){printf(\
- EMassertMessage, "ex", __FILE__, __LINE__);abort();}}
- # else
- # define _assert(ex) ;
- # define assert(ex) ;
- # endif
- # endif
- #endif
-