home *** CD-ROM | disk | FTP | other *** search
- /*
- * assert.h -- ANSI
- *
- * Diagnostic facilities.
- *
- * Copyright (c) 1991, MetaWare Incorporated
- */
-
- #ifndef _ASSERT_H
- #define _ASSERT_H
-
- #ifdef __CPLUSPLUS__
- extern "C" {
- #endif
-
- #undef assert
-
- #ifdef NDEBUG
- #define assert(ignore) ((void)0)
-
- #else
- void _assert(void *, void *, unsigned);
- #define assert(E) ((E)? (void)0 : _assert(#E, __FILE__, __LINE__))
-
- #endif /* NDEBUG */
- #ifdef __CPLUSPLUS__
- }
- #endif
- #endif /*_ASSERT_H */
-