File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -732,12 +732,15 @@ _PyObject_GET_WEAKREFS_LISTPTR_FROM_OFFSET(PyObject *op)
732732 return (PyWeakReference * * )((char * )op + offset );
733733}
734734
735+ // Fast inlined version of PyType_IS_GC()
736+ #define _PyType_IS_GC (t ) _PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)
737+
735738// Fast inlined version of PyObject_IS_GC()
736739static inline int
737740_PyObject_IS_GC (PyObject * obj )
738741{
739742 PyTypeObject * type = Py_TYPE (obj );
740- return (PyType_IS_GC (type )
743+ return (_PyType_IS_GC (type )
741744 && (type -> tp_is_gc == NULL || type -> tp_is_gc (obj )));
742745}
743746
@@ -755,9 +758,6 @@ _PyObject_HashFast(PyObject *op)
755758 return PyObject_Hash (op );
756759}
757760
758- // Fast inlined version of PyType_IS_GC()
759- #define _PyType_IS_GC (t ) _PyType_HasFeature((t), Py_TPFLAGS_HAVE_GC)
760-
761761static inline size_t
762762_PyType_PreHeaderSize (PyTypeObject * tp )
763763{
You can’t perform that action at this time.
0 commit comments