home *** CD-ROM | disk | FTP | other *** search
- #include "assert_mac.h"
-
- #ifndef NDEBUG
-
- void _ASSERT(char *msg)
- {
- Str255 debugMsg;
- short msgLength, i;
-
- /* Step through and find length of c-string msg */
- msgLength = 0;
- while (msg[msgLength++] != 0) {}
-
- /* Copy msg to pascal msg string */
- for (i = 0; i < msgLength; i++)
- debugMsg[i+1] = msg[i];
- debugMsg[0] = msgLength;
-
- /* Call debugger */
- DebugStr(debugMsg);
- } // END _Assert
-
- #endif // NDEBUG