зеркало из https://github.com/mozilla/gecko-dev.git
bug 78650, moved some #ifdefs so that printfs never happen in optimized builds.
patch by cls@seawood.org, r=mstoltz@netscape.com, dveditz@netscape.com
This commit is contained in:
Родитель
9e07ab2cd5
Коммит
9f572bcb9a
|
@ -819,15 +819,12 @@ void nsJAR::ReportError(const char* aFilename, PRInt16 errorCode)
|
|||
console->LogStringMessage(messageUni);
|
||||
nsMemory::Free(messageUni);
|
||||
}
|
||||
#ifndef DEBUG
|
||||
else // If JS console reporting failed, print to stderr.
|
||||
#ifdef DEBUG
|
||||
char* messageCstr = message.ToNewCString();
|
||||
if (!messageCstr) return;
|
||||
fprintf(stderr, "%s\n", messageCstr);
|
||||
nsMemory::Free(messageCstr);
|
||||
#endif
|
||||
{
|
||||
char* messageCstr = message.ToNewCString();
|
||||
if (!messageCstr) return;
|
||||
fprintf(stderr, "%s\n", messageCstr);
|
||||
nsMemory::Free(messageCstr);
|
||||
}
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
Загрузка…
Ссылка в новой задаче