summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ModuleNode.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2016-07-30 23:26:17 +0200
committerStefan Behnel <stefan_ml@behnel.de>2016-07-30 23:38:43 +0200
commit71de578aecc9772625be8922919a567f8808d594 (patch)
treec84d7eb91ff6c79edae237afd6383b11cd292343 /Cython/Compiler/ModuleNode.py
parentebf960e49436991c9aace008b90c65222de4fea7 (diff)
downloadcython-71de578aecc9772625be8922919a567f8808d594.tar.gz
replace generic "COMPILING_IN_*" C macros with feature specific guards that allow a more fine-grained adaptation to C-API implementations
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r--Cython/Compiler/ModuleNode.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
index 133fe5e61..cb2ab97b3 100644
--- a/Cython/Compiler/ModuleNode.py
+++ b/Cython/Compiler/ModuleNode.py
@@ -1397,7 +1397,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if base_type.scope and base_type.scope.needs_gc():
code.putln("PyObject_GC_Track(o);")
else:
- code.putln("#if CYTHON_COMPILING_IN_CPYTHON")
+ code.putln("#if CYTHON_USE_TYPE_SLOTS")
code.putln("if (PyType_IS_GC(Py_TYPE(o)->tp_base))")
code.putln("#endif")
code.putln("PyObject_GC_Track(o);")