home *** CD-ROM | disk | FTP | other *** search
- /* ExtrasLib:Paranoia.h */
-
- /* ExtrasLib by Peter Hartley 1995-96
- * (K) All Rites Reversed - Copy What You Like
- */
-
- #ifndef __xtra_paranoia_h
- #define __xtra_paranoia_h
-
- #ifdef PARANOIA
- # ifdef NDEBUG
- # undef NDEBUG
- # endif
- #else
- # define NDEBUG
- #endif
-
- #ifndef __assert_h
- #include <assert.h>
- #endif
-
- #ifndef er
- #define er(___x) { os_error *___e = ___x; if (___e) return ___e; }
- #endif
-
- #ifdef PARANOIA
- #define per(___y) { os_error *___e = ___y; if (___e) __assert( ___e->errmess, __FILE__, __LINE__ ); }
- #else
- #define per(___y) ___y
- #endif
-
- #endif
-