Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84a9032

Browse files
committed
TRACE_REFS -> Py_TRACE_REFS.
Added disgusting hack to force loading of abstract.o.
1 parent 60be1db commit 84a9032

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Objects/object.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ object NoObject = {
473473
};
474474

475475

476-
#ifdef TRACE_REFS
476+
#ifdef Py_TRACE_REFS
477477

478478
static object refchain = {&refchain, &refchain};
479479

@@ -576,3 +576,7 @@ getobjects(self, args)
576576

577577
/* Hack to force loading of cobject.o */
578578
static PyTypeObject *cobject_hack = &PyCObject_Type;
579+
580+
581+
/* Hack to force loading of abstract.o */
582+
static int (*abstract_hack) FPROTO((PyObject *)) = &PyObject_Length;

0 commit comments

Comments
 (0)