Skip to content

Commit efeb67d

Browse files
committed
Update Py_INCREF #ifdef
1 parent 9190921 commit efeb67d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Include/refcount.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,7 @@ PyAPI_FUNC(void) _Py_DecRef(PyObject *);
254254

255255
static inline Py_ALWAYS_INLINE void Py_INCREF(PyObject *op)
256256
{
257-
#if (defined(Py_LIMITED_API) && (Py_LIMITED_API+0 >= 0x030c0000 || defined(Py_REF_DEBUG))) \
258-
|| defined(_Py_OPAQUE_PYOBJECT)
257+
#if defined(Py_LIMITED_API) || defined(_Py_OPAQUE_PYOBJECT)
259258
// Since Python 3.16, the stable ABI implements Py_INCREF() as a function
260259
// call on all limited C API versions. _Py_IncRef() was added to Python
261260
// 3.10.0a7, use Py_IncRef() on older versions. Py_IncRef() accepts NULL,

0 commit comments

Comments
 (0)