Added function name to many of the PyArg_ParseTuple calls in gameengine

This way python raises more useful messages.
This commit is contained in:
Andre Susano Pinto
2009-04-10 16:45:19 +00:00
parent a412ce0702
commit 2fff90bbb4
38 changed files with 166 additions and 166 deletions

View File

@@ -185,7 +185,7 @@ const char SCA_RandomSensor::SetSeed_doc[] =
PyObject* SCA_RandomSensor::PySetSeed(PyObject* self, PyObject* args, PyObject* kwds) {
ShowDeprecationWarning("setSeed()", "the seed property");
long seedArg;
if(!PyArg_ParseTuple(args, "i", &seedArg)) {
if(!PyArg_ParseTuple(args, "i:setSeed", &seedArg)) {
return NULL;
}