mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-111506: Implement Py_SET_REFCNT() as opaque function in limited C API (#111508)
In the limited C API version 3.13, Py_SET_REFCNT() function is now implemented as an opaque function call. Add _Py_SetRefcnt() to the stable ABI.
This commit is contained in:
parent
e0afed7e27
commit
20cfab903d
6 changed files with 26 additions and 2 deletions
|
@ -2931,3 +2931,11 @@ int Py_IsFalse(PyObject *x)
|
|||
{
|
||||
return Py_Is(x, Py_False);
|
||||
}
|
||||
|
||||
|
||||
// Py_SET_REFCNT() implementation for stable ABI
|
||||
void
|
||||
_Py_SetRefcnt(PyObject *ob, Py_ssize_t refcnt)
|
||||
{
|
||||
Py_SET_REFCNT(ob, refcnt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue