BGE Python API

removed redundant (PyObject *self) argument from python functions that are not exposed to python directly.
This commit is contained in:
Campbell Barton
2009-04-19 17:29:07 +00:00
parent fe08da3b4c
commit 6bc162e679
70 changed files with 545 additions and 748 deletions

View File

@@ -183,9 +183,9 @@ from = Name of object to sned the string from";
static PyObject* gPySendMessage(PyObject*, PyObject* args)
{
char* subject;
char* body = "";
char* to = "";
char* from = "";
char* body = (char *)"";
char* to = (char *)"";
char* from = (char *)"";
if (!PyArg_ParseTuple(args, "s|sss:sendMessage", &subject, &body, &to, &from))
return NULL;
@@ -1422,7 +1422,7 @@ static void clearGameModules()
/* Note, user modules could still reference these modules
* but since the dict's are cleared their members wont be accessible */
PyObject *modules= PySys_GetObject("modules");
PyObject *modules= PySys_GetObject((char *)"modules");
clearModule(modules, "Expression");
clearModule(modules, "CValue");
clearModule(modules, "PhysicsConstraints");