pyxpcom enhancements done as part of the dom work:
* pyxpcom.dll/.so holds the core library. _xpcom module becomes a thin wrapper around the DLL, and the module loader gets the main loader logic back. * Don't globally block pending deprecation warnings in Python 2.4 - also fix a few places where 2.3 and 2.4 behaved differently. * Add the start of logging module support, pending approval from the mailing list. * Expose NS_GetComponentRegistrar so regxpcom.py works again. * 'make check' now runs the test suite (like it does for various other parts of the moz tree) git-svn-id: svn://10.0.0.236/branches/DOM_AGNOSTIC_BRANCH@179616 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -58,7 +58,7 @@ static char *PyTraceback_AsString(PyObject *exc_tb);
|
||||
void LogMessage(const char *prefix, const char *pszMessageText)
|
||||
{
|
||||
nsCOMPtr<nsIConsoleService> consoleService = do_GetService(NS_CONSOLESERVICE_CONTRACTID);
|
||||
NS_ABORT_IF_FALSE(consoleService, "Where is the console service?");
|
||||
NS_ASSERTION(consoleService != nsnull, "pyxpcom can't find the console service");
|
||||
if (consoleService)
|
||||
consoleService->LogStringMessage(NS_ConvertASCIItoUCS2(pszMessageText).get());
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user