MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / _Py_SET_REFCNT

Function _Py_SET_REFCNT

asyncpg/protocol/record/pythoncapi_compat.h:86–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84// bpo-39573 added Py_SET_REFCNT() to Python 3.9.0a4
85#if PY_VERSION_HEX < 0x030900A4 && !defined(Py_SET_REFCNT)
86static inline void _Py_SET_REFCNT(PyObject *ob, Py_ssize_t refcnt)
87{
88 ob->ob_refcnt = refcnt;
89}
90#define Py_SET_REFCNT(ob, refcnt) _Py_SET_REFCNT(_PyObject_CAST(ob), refcnt)
91#endif
92

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected