Commit f3112454 authored by Lisandro Dalcin's avatar Lisandro Dalcin

Windows: Don't use _PyObject_GC_[UN]TRACK to fix linker error

Python docs says they should not be used in extension modules.
https://docs.python.org/3/c-api/gcsupport.html#c._PyObject_GC_TRACK
parent 3e4eb08b
......@@ -960,11 +960,7 @@ typedef struct {
} __pyx_CoroutineAwaitObject;
static void __Pyx_CoroutineAwait_dealloc(PyObject *self) {
#if CYTHON_COMPILING_IN_CPYTHON
_PyObject_GC_UNTRACK(self);
#else
PyObject_GC_UnTrack(self);
#endif
Py_CLEAR(((__pyx_CoroutineAwaitObject*)self)->coroutine);
PyObject_GC_Del(self);
}
......@@ -1085,7 +1081,7 @@ static CYTHON_INLINE PyObject *__Pyx__Coroutine_await(PyObject *coroutine) {
Py_INCREF(coroutine);
await->coroutine = coroutine;
#if CYTHON_COMPILING_IN_CPYTHON
_PyObject_GC_TRACK(await);
PyObject_GC_Track(await);
#endif
return (PyObject*)await;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment