blob: 6b6a9148fe4cde1a160d2d8eac3ffdd5570eae4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "pygobject.h"
PyObject *
_wrap_get_tp_basicsize (PyObject * self,
PyObject * args)
{
PyObject *item;
item = PyTuple_GetItem(args, 0);
return PyInt_FromLong(((PyTypeObject*)item)->tp_basicsize);
}
static PyMethodDef testhelper_methods[] = {
{ "get_tp_basicsize", _wrap_get_tp_basicsize, METH_VARARGS },
{ NULL, NULL }
};
void
inittesthelper ()
{
Py_InitModule ("testhelper", testhelper_methods);
}
|