summaryrefslogtreecommitdiffstats
path: root/Objects/obmalloc.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-04-19 15:02:55 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-04-19 15:02:55 (GMT)
commit0621e0ea86ab964110c612b5eca297a698fb5195 (patch)
tree54e4167414bc0df6fb4955d7b8f9df774bf27e8c /Objects/obmalloc.c
parent1fa5a38e92e8a50e565f4fee7a5b31131b1d56f3 (diff)
downloadcpython-0621e0ea86ab964110c612b5eca297a698fb5195.zip
cpython-0621e0ea86ab964110c612b5eca297a698fb5195.tar.gz
cpython-0621e0ea86ab964110c612b5eca297a698fb5195.tar.bz2
Don't define _PyMem_PymallocEnabled() if pymalloc is disabled
Isse #26516.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r--Objects/obmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 40c9fcd..6cf8ea9 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -286,13 +286,13 @@ static PyObjectArenaAllocator _PyObject_Arena = {NULL,
#endif
};
+#ifdef WITH_PYMALLOC
static int
_PyMem_DebugEnabled(void)
{
return (_PyObject.malloc == _PyMem_DebugMalloc);
}
-#ifdef WITH_PYMALLOC
int
_PyMem_PymallocEnabled(void)
{