We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 924c06c commit 2ab3a06Copy full SHA for 2ab3a06
1 file changed
Include/refcount.h
@@ -223,10 +223,18 @@ you can count such references to the type object.)
223
*/
224
225
#if defined(Py_REF_DEBUG) && !defined(Py_LIMITED_API)
226
+
227
PyAPI_FUNC(void) _Py_NegativeRefcount(const char *filename, int lineno,
228
PyObject *op);
229
PyAPI_FUNC(void) _Py_INCREF_IncRefTotal(void);
230
PyAPI_FUNC(void) _Py_DECREF_DecRefTotal(void);
231
232
+#else
233
234
+#define _Py_NegativeRefcount(F, L, O) ((void)0)
235
+#define _Py_INCREF_IncRefTotal() ((void)0)
236
+#define _Py_DECREF_DecRefTotal() ((void)0)
237
238
#endif // Py_REF_DEBUG && !Py_LIMITED_API
239
240
PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
0 commit comments