fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -148,7 +148,7 @@ PyXPCOMMethod_XPTC_InvokeByIndex(PyObject *self, PyObject *args)
|
||||
|
||||
// We no longer rely on PyErr_Occurred() for our error state,
|
||||
// but keeping this assertion can't hurt - it should still always be true!
|
||||
NS_WARN_IF_FALSE(!PyErr_Occurred(), "Should be no pending Python error!");
|
||||
NS_ASSERTION(!PyErr_Occurred(), "Should be no pending Python error!");
|
||||
|
||||
if (!PyArg_ParseTuple(args, "OiO", &obIS, &index, &obParams))
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user