| 73 | // bpo-42262 added Py_XNewRef() to Python 3.10.0a3 |
| 74 | #if PY_VERSION_HEX < 0x030A00A3 && !defined(Py_XNewRef) |
| 75 | static inline PyObject* _Py_XNewRef(PyObject *obj) |
| 76 | { |
| 77 | Py_XINCREF(obj); |
| 78 | return obj; |
| 79 | } |
| 80 | #define Py_XNewRef(obj) _Py_XNewRef(_PyObject_CAST(obj)) |
| 81 | #endif |
| 82 |
nothing calls this directly
no outgoing calls
no test coverage detected