mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Initialize a static to be nice, and printf() errors if the console
service is not available. Not part of the build.
This commit is contained in:
parent
3655177e33
commit
acf70bff49
@ -42,6 +42,8 @@ void LogMessage(const char *prefix, const char *pszMessageText)
|
||||
NS_ABORT_IF_FALSE(consoleService, "Where is the console service?");
|
||||
if (consoleService)
|
||||
consoleService->LogStringMessage(NS_ConvertASCIItoUCS2(pszMessageText).get());
|
||||
else
|
||||
printf("%s\n", pszMessageText);
|
||||
}
|
||||
|
||||
void LogMessage(const char *prefix, nsACString &text)
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
static PRInt32 g_cLockCount = 0;
|
||||
static PyThreadState *ptsGlobal = nsnull;
|
||||
PyInterpreterState *PyXPCOM_InterpreterState;
|
||||
PyInterpreterState *PyXPCOM_InterpreterState = nsnull;
|
||||
static PRLock *g_lockMain = nsnull;
|
||||
|
||||
PRUintn tlsIndex = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user