@@ -588,10 +588,8 @@ you can count such references to the type object.)
588
588
#if defined(Py_REF_DEBUG ) && !defined(Py_LIMITED_API )
589
589
PyAPI_FUNC (void ) _Py_NegativeRefcount (const char * filename , int lineno ,
590
590
PyObject * op );
591
- PyAPI_FUNC (void ) _Py_IncRefTotal_DO_NOT_USE_THIS (void );
592
- PyAPI_FUNC (void ) _Py_DecRefTotal_DO_NOT_USE_THIS (void );
593
- # define _Py_INC_REFTOTAL () _Py_IncRefTotal_DO_NOT_USE_THIS()
594
- # define _Py_DEC_REFTOTAL () _Py_DecRefTotal_DO_NOT_USE_THIS()
591
+ PyAPI_FUNC (void ) _Py_INCREF_IncRefTotal (void );
592
+ PyAPI_FUNC (void ) _Py_DECREF_DecRefTotal (void );
595
593
#endif // Py_REF_DEBUG && !Py_LIMITED_API
596
594
597
595
PyAPI_FUNC (void ) _Py_Deallo
10000
c (PyObject * );
@@ -640,7 +638,7 @@ static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op)
640
638
#endif
641
639
_Py_INCREF_STAT_INC ();
642
640
#ifdef Py_REF_DEBUG
643
- _Py_INC_REFTOTAL ();
641
+ _Py_INCREF_IncRefTotal ();
644
642
#endif
645
643
#endif
646
644
}
@@ -669,7 +667,7 @@ static inline void Py_DECREF(const char *filename, int lineno, PyObject *op)
669
667
return ;
670
668
}
671
669
_Py_DECREF_STAT_INC ();
672
- _Py_DEC_REFTOTAL ();
670
+ _Py_DECREF_DecRefTotal ();
673
671
if (-- op -> ob_refcnt != 0 ) {
674
672
if (op -> ob_refcnt < 0 ) {
675
673
_Py_NegativeRefcount (filename , lineno , op );
@@ -697,9 +695,6 @@ static inline Py_ALWAYS_INLINE void Py_DECREF(PyObject *op)
697
695
#define Py_DECREF (op ) Py_DECREF(_PyObject_CAST(op))
698
696
#endif
699
697
700
- #undef _Py_INC_REFTOTAL
701
- #undef _Py_DEC_REFTOTAL
702
-
703
698
704
699
/* Safely decref `op` and set `op` to NULL, especially useful in tp_clear
705
700
* and tp_dealloc implementations.
0 commit comments