diff options
author | Victor Stinner <vstinner@python.org> | 2024-09-24 06:42:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 06:42:58 (GMT) |
commit | 9d344fafc4385cb2e17425b77b54660ca83c61ac (patch) | |
tree | b405dbb48f51bf61d8463d8adb5bd5836ec752e2 /Objects | |
parent | b82f07653e1e15a48ebaf8de324f52559e470254 (diff) | |
download | cpython-9d344fafc4385cb2e17425b77b54660ca83c61ac.zip cpython-9d344fafc4385cb2e17425b77b54660ca83c61ac.tar.gz cpython-9d344fafc4385cb2e17425b77b54660ca83c61ac.tar.bz2 |
gh-124127: Make Py_REFCNT() opaque in limited C API 3.14 (#124128)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/object.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c index bc63b81..8a819dd 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -3039,7 +3039,17 @@ Py_GetConstantBorrowed(unsigned int constant_id) // Py_TYPE() implementation for the stable ABI #undef Py_TYPE -PyTypeObject* Py_TYPE(PyObject *ob) +PyTypeObject* +Py_TYPE(PyObject *ob) { return _Py_TYPE(ob); } + + +// Py_REFCNT() implementation for the stable ABI +#undef Py_REFCNT +Py_ssize_t +Py_REFCNT(PyObject *ob) +{ + return _Py_REFCNT(ob); +} |