Commit 0621e0ea authored by Victor Stinner's avatar Victor Stinner

Don't define _PyMem_PymallocEnabled() if pymalloc is disabled

Isse #26516.
parent 1fa5a38e
...@@ -286,13 +286,13 @@ static PyObjectArenaAllocator _PyObject_Arena = {NULL, ...@@ -286,13 +286,13 @@ static PyObjectArenaAllocator _PyObject_Arena = {NULL,
#endif #endif
}; };
#ifdef WITH_PYMALLOC
static int static int
_PyMem_DebugEnabled(void) _PyMem_DebugEnabled(void)
{ {
return (_PyObject.malloc == _PyMem_DebugMalloc); return (_PyObject.malloc == _PyMem_DebugMalloc);
} }
#ifdef WITH_PYMALLOC
int int
_PyMem_PymallocEnabled(void) _PyMem_PymallocEnabled(void)
{ {
......
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