]> granicus.if.org Git - python/commit
bpo-35053: Define _PyTraceMalloc_NewReference in object.h (GH-10107)
authorVictor Stinner <vstinner@redhat.com>
Thu, 25 Oct 2018 22:01:56 +0000 (00:01 +0200)
committerGitHub <noreply@github.com>
Thu, 25 Oct 2018 22:01:56 +0000 (00:01 +0200)
commitc89a93271447ec65e83a1dc7605e62dbf272cafd
treebaaf2c7ce7cea2581b0b33da5d1f5926238e7255
parent6c83d9f4a72905d968418bef670bb3091d2744db
bpo-35053: Define _PyTraceMalloc_NewReference in object.h (GH-10107)

_PyTraceMalloc_NewReference() is now called by _Py_NewReference(), so
move its definition to object.h. Moreover, define it even if
Py_LIMITED_API is defined, since _Py_NewReference() is also exposed
even if Py_LIMITED_API is defined.
Include/object.h
Include/tracemalloc.h
Modules/Setup