| 62 | // bpo-42262 added Py_NewRef() to Python 3.10.0a3 |
| 63 | #if PY_VERSION_HEX < 0x030A00A3 && !defined(Py_NewRef) |
| 64 | static inline PyObject* _Py_NewRef(PyObject *obj) |
| 65 | { |
| 66 | Py_INCREF(obj); |
| 67 | return obj; |
| 68 | } |
| 69 | #define Py_NewRef(obj) _Py_NewRef(_PyObject_CAST(obj)) |
| 70 | #endif |
| 71 |
nothing calls this directly
no outgoing calls
no test coverage detected