mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Don't define _PyMem_PymallocEnabled() if pymalloc is disabled
Isse #26516.
This commit is contained in:
parent
1fa5a38e92
commit
0621e0ea86
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue