зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
5fe32cd2ea
Коммит
5f6737814a
|
@ -42,6 +42,8 @@ void LogMessage(const char *prefix, const char *pszMessageText)
|
||||||
NS_ABORT_IF_FALSE(consoleService, "Where is the console service?");
|
NS_ABORT_IF_FALSE(consoleService, "Where is the console service?");
|
||||||
if (consoleService)
|
if (consoleService)
|
||||||
consoleService->LogStringMessage(NS_ConvertASCIItoUCS2(pszMessageText).get());
|
consoleService->LogStringMessage(NS_ConvertASCIItoUCS2(pszMessageText).get());
|
||||||
|
else
|
||||||
|
printf("%s\n", pszMessageText);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LogMessage(const char *prefix, nsACString &text)
|
void LogMessage(const char *prefix, nsACString &text)
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
static PRInt32 g_cLockCount = 0;
|
static PRInt32 g_cLockCount = 0;
|
||||||
static PyThreadState *ptsGlobal = nsnull;
|
static PyThreadState *ptsGlobal = nsnull;
|
||||||
PyInterpreterState *PyXPCOM_InterpreterState;
|
PyInterpreterState *PyXPCOM_InterpreterState = nsnull;
|
||||||
static PRLock *g_lockMain = nsnull;
|
static PRLock *g_lockMain = nsnull;
|
||||||
|
|
||||||
PRUintn tlsIndex = 0;
|
PRUintn tlsIndex = 0;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче