commit | 928405303dfdb740e5b40815a0cfdb2da92f768d | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Mon Dec 17 23:05:59 2012 +0100 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Mon Dec 17 23:05:59 2012 +0100 |
tree | 1770f5a48cd9751873ecaba8d73981b19e094b57 | |
parent | 3438fa496db50ef3cafcfdb3243f2f769bc12ebe [diff] [blame] |
Following issue #13390, fix compilation --without-pymalloc, and make sys.getallocatedblocks() return 0 in that situation.
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c index c82c978..bbe2805 100644 --- a/Objects/obmalloc.c +++ b/Objects/obmalloc.c
@@ -1316,6 +1316,13 @@ { PyMem_FREE(p); } + +Py_ssize_t +_Py_GetAllocatedBlocks(void) +{ + return 0; +} + #endif /* WITH_PYMALLOC */ #ifdef PYMALLOC_DEBUG