Bugzilla bug #63273: define PR_Assert in optimized builds too.

This commit is contained in:
wtc%netscape.com 2000-12-19 05:56:58 +00:00
parent b088df0bf7
commit a623ea50c6

View File

@ -479,9 +479,11 @@ static void DebugBreak(void) { int *pTrap=NULL; *pTrap = 1; }
static void DebugBreak(void) { }
#endif
#endif /* XP_OS2 */
#endif /* DEBUG */
PR_IMPLEMENT(void) PR_Assert(const char *s, const char *file, PRIntn ln)
{
#ifdef DEBUG
PR_LogPrint("Assertion failure: %s, at %s:%d\n", s, file, ln);
#if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
fprintf(stderr, "Assertion failure: %s, at %s:%d\n", s, file, ln);
@ -495,8 +497,8 @@ PR_IMPLEMENT(void) PR_Assert(const char *s, const char *file, PRIntn ln)
#ifndef XP_MAC
abort();
#endif
}
#endif /* DEBUG */
}
#ifdef XP_MAC
PR_IMPLEMENT(void) PR_Init_Log(void)