mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 11:27:55 +00:00
Bugzilla bug #63273: define PR_Assert in optimized builds too.
This commit is contained in:
parent
b088df0bf7
commit
a623ea50c6
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user