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:
mhammond%skippinet.com.au 2003-04-16 01:26:51 +00:00
parent 3655177e33
commit acf70bff49
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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;