Py_TYPE() compatibility macro for Python < 2.6
This commit is contained in:
parent
7b51c4a1eb
commit
2f5a5c44cf
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue