Return NONE properly from test API point
This commit is contained in:
parent
a4d0efe334
commit
6d05f8bc63
|
@ -96,7 +96,10 @@ PyObject* McRFPy_API::_drawSprite(PyObject *self, PyObject *args)
|
||||||
int ti, gx, gy;
|
int ti, gx, gy;
|
||||||
if (!PyArg_ParseTuple(args, "iii", &ti, &gx, &gy)) return NULL;
|
if (!PyArg_ParseTuple(args, "iii", &ti, &gx, &gy)) return NULL;
|
||||||
drawSprite(ti, gx, gy);
|
drawSprite(ti, gx, gy);
|
||||||
return NULL;
|
|
||||||
|
// return None correctly
|
||||||
|
Py_INCREF(Py_None);
|
||||||
|
return Py_None;
|
||||||
}
|
}
|
||||||
|
|
||||||
void McRFPy_API::api_init() {
|
void McRFPy_API::api_init() {
|
||||||
|
|
Loading…
Reference in New Issue