Py_TYPE() compatibility macro for Python < 2.6

This commit is contained in:
Panu Matilainen 2009-10-19 10:57:13 +03:00
parent 7b51c4a1eb
commit 2f5a5c44cf
1 changed files with 4 additions and 0 deletions

View File

@ -15,4 +15,8 @@ typedef ssize_t Py_ssize_t;
typedef Py_ssize_t (*lenfunc)(PyObject *);
#endif
#ifndef Py_TYPE
#define Py_TYPE(o) ((o)->ob_type)
#endif
#endif /* H_SYSTEM_PYTHON */