summaryrefslogtreecommitdiffstats
path: root/Include/Python.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-04-29 08:47:47 (GMT)
committerGitHub <noreply@github.com>2021-04-29 08:47:47 (GMT)
commit645ed62fb4c09b7e23887fcca0767b0f2d7d3fd6 (patch)
treefc32b850519953ecef975a516a455dda65a72d34 /Include/Python.h
parentb1f413e6cf63a1c5704fcb47f2095ef5db8970bb (diff)
downloadcpython-645ed62fb4c09b7e23887fcca0767b0f2d7d3fd6.zip
cpython-645ed62fb4c09b7e23887fcca0767b0f2d7d3fd6.tar.gz
cpython-645ed62fb4c09b7e23887fcca0767b0f2d7d3fd6.tar.bz2
bpo-43774: Remove unused PYMALLOC_DEBUG macro (GH-25711)
Enhance also the documentation of debug hooks on memory allocators.
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 1df2fd5..4d0335d 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -72,15 +72,6 @@
# endif
#endif
-/* Debug-mode build with pymalloc implies PYMALLOC_DEBUG.
- * PYMALLOC_DEBUG is in error if pymalloc is not in use.
- */
-#if defined(Py_DEBUG) && defined(WITH_PYMALLOC) && !defined(PYMALLOC_DEBUG)
-#define PYMALLOC_DEBUG
-#endif
-#if defined(PYMALLOC_DEBUG) && !defined(WITH_PYMALLOC)
-#error "PYMALLOC_DEBUG requires WITH_PYMALLOC"
-#endif
#include "pymath.h"
#include "pymem.h"