mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Two new public API functions, Py_IncRef and Py_DecRef. Useful for
dynamic embedders of Python.
This commit is contained in:
parent
1a9d32b8d4
commit
1328b52c6f
4 changed files with 28 additions and 0 deletions
|
@ -146,6 +146,18 @@ _Py_NegativeRefcount(const char *fname, int lineno, PyObject *op)
|
|||
|
||||
#endif /* Py_REF_DEBUG */
|
||||
|
||||
void
|
||||
Py_IncRef(PyObject *o)
|
||||
{
|
||||
Py_XINCREF(o);
|
||||
}
|
||||
|
||||
void
|
||||
Py_DecRef(PyObject *o)
|
||||
{
|
||||
Py_XDECREF(o);
|
||||
}
|
||||
|
||||
PyObject *
|
||||
PyObject_Init(PyObject *op, PyTypeObject *tp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue