mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-08 07:53:54 +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) { }
|
static void DebugBreak(void) { }
|
||||||
#endif
|
#endif
|
||||||
#endif /* XP_OS2 */
|
#endif /* XP_OS2 */
|
||||||
|
#endif /* DEBUG */
|
||||||
|
|
||||||
PR_IMPLEMENT(void) PR_Assert(const char *s, const char *file, PRIntn ln)
|
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);
|
PR_LogPrint("Assertion failure: %s, at %s:%d\n", s, file, ln);
|
||||||
#if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
|
#if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
|
||||||
fprintf(stderr, "Assertion failure: %s, at %s:%d\n", s, file, ln);
|
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
|
#ifndef XP_MAC
|
||||||
abort();
|
abort();
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef XP_MAC
|
#ifdef XP_MAC
|
||||||
PR_IMPLEMENT(void) PR_Init_Log(void)
|
PR_IMPLEMENT(void) PR_Init_Log(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user