summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-04-14 18:11:20 (GMT)
committerGitHub <noreply@github.com>2020-04-14 18:11:20 (GMT)
commit675d9a3d7afc767a2818c84da7ba4bf4181dcf26 (patch)
tree621da3f9078df542c36e8bb856c6d86da4ce52b0 /Objects
parenta5900ecf9f22e65bef489633692e9ea6941379c5 (diff)
downloadcpython-675d9a3d7afc767a2818c84da7ba4bf4181dcf26.zip
cpython-675d9a3d7afc767a2818c84da7ba4bf4181dcf26.tar.gz
cpython-675d9a3d7afc767a2818c84da7ba4bf4181dcf26.tar.bz2
bpo-40170: Convert PyObject_IS_GC() macro to a function (GH-19464)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c
index c759ccc..75ea92a 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -2031,7 +2031,7 @@ _PyTrash_deposit_object(PyObject *op)
PyThreadState *tstate = _PyThreadState_GET();
struct _gc_runtime_state *gcstate = &tstate->interp->gc;
- _PyObject_ASSERT(op, PyObject_IS_GC(op));
+ _PyObject_ASSERT(op, _PyObject_IS_GC(op));
_PyObject_ASSERT(op, !_PyObject_GC_IS_TRACKED(op));
_PyObject_ASSERT(op, Py_REFCNT(op) == 0);
_PyGCHead_SET_PREV(_Py_AS_GC(op), gcstate->trash_delete_later);
@@ -2043,7 +2043,7 @@ void
_PyTrash_thread_deposit_object(PyObject *op)
{
PyThreadState *tstate = _PyThreadState_GET();
- _PyObject_ASSERT(op, PyObject_IS_GC(op));
+ _PyObject_ASSERT(op, _PyObject_IS_GC(op));
_PyObject_ASSERT(op, !_PyObject_GC_IS_TRACKED(op));
_PyObject_ASSERT(op, Py_REFCNT(op) == 0);
_PyGCHead_SET_PREV(_Py_AS_GC(op), tstate->trash_delete_later);