home *** CD-ROM | disk | FTP | other *** search
- #ifndef ASSERT_MAC_H_
- #define ASSERT_MAC_H_
-
- #if __MWERKS__
- #pragma options align=mac68k
- #endif
-
- //#define NDEBUG
-
- // #undef assert /* remove existing definition */
-
- #ifdef NDEBUG
- #define ASSERT(test) ((void)0)
- #else /* NDEBUG not defined */
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- void _ASSERT(char *);
-
- #ifdef __cplusplus
- }
- #endif
-
- /* macros */
- #define _STR(x) _VAL(x)
- #define _VAL(x) #x
-
- #define ASSERT(test) ((test) ? (void)0 \
- : _ASSERT(__FILE__ ":" _STR(__LINE__) " " #test))
-
- #endif
-
- #if __MWERKS__
- #pragma options align=reset
- #endif
-
- /* Modified by Hiep Dam to use native Mac Toolbox output instead of
- standard library io (eg debugger output).
- This header is based on the assert.h header file included
- in CodeWarrior 6.
-
- June 19 1995 */
-
- /*
- * Copyright (c) 1994 by P.J. Plauger. ALL RIGHTS RESERVED.
- * Consult your license regarding permissions and restrictions.
- */
-
- /* Change log:
- *94June04 PlumHall baseline
- *94Oct07 Inserted MW changes.
- */
-
- #endif // ASSERT_MAC_H_