Bugzilla bug #16566: PR_Assert should be defined only if DEBUG is defined.
git-svn-id: svn://10.0.0.236/trunk@53546 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a0c1d51635
commit
d6c5f3cedd
@ -244,7 +244,6 @@ void _PR_LogCleanup(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
static void _PR_SetLogModuleLevel( PRLogModuleInfo *lm )
|
||||
{
|
||||
char *ev;
|
||||
@ -432,9 +431,9 @@ PR_IMPLEMENT(void) PR_Abort(void)
|
||||
abort();
|
||||
}
|
||||
|
||||
#ifdef 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);
|
||||
@ -448,8 +447,8 @@ PR_IMPLEMENT(void) PR_Assert(const char *s, const char *file, PRIntn ln)
|
||||
#ifndef XP_MAC
|
||||
abort();
|
||||
#endif
|
||||
#endif /* DEBUG */
|
||||
}
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifdef XP_MAC
|
||||
PR_IMPLEMENT(void) PR_Init_Log(void)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user