Following issue #13390, fix compilation --without-pymalloc, and make sys.getallocatedblocks() return 0 in that situation.

This commit is contained in:
Antoine Pitrou 2012-12-17 23:05:59 +01:00
parent 3438fa496d
commit 928405303d
3 changed files with 21 additions and 8 deletions

View file

@ -1316,6 +1316,13 @@ PyObject_Free(void *p)
{
PyMem_FREE(p);
}
Py_ssize_t
_Py_GetAllocatedBlocks(void)
{
return 0;
}
#endif /* WITH_PYMALLOC */
#ifdef PYMALLOC_DEBUG