diff options
author | INADA Naoki <methane@users.noreply.github.com> | 2018-11-14 09:39:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 09:39:27 (GMT) |
commit | a757649fd6535c5e65481eb1077e30687421b92b (patch) | |
tree | 61efeaa58732fb29018668d5ed48baeab5499c20 /Include | |
parent | 8e0b05e2f4b9fd703cbe1ae8d058852ef3781f44 (diff) | |
download | cpython-a757649fd6535c5e65481eb1077e30687421b92b.zip cpython-a757649fd6535c5e65481eb1077e30687421b92b.tar.gz cpython-a757649fd6535c5e65481eb1077e30687421b92b.tar.bz2 |
bpo-35230: dict: Remove some macros (GH-10513)
Remove _Py_REF_DEBUG_COMMA, DK_DEBUG_INCREF, and DK_DEBUG_DECREF.
Convert DK_INCREF and DK_DECREF to static inline functions.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h index 10ec600..48ce9d2 100644 --- a/Include/object.h +++ b/Include/object.h @@ -734,7 +734,6 @@ PyAPI_FUNC(void) _Py_NegativeRefcount(const char *filename, int lineno, PyAPI_FUNC(Py_ssize_t) _Py_GetRefTotal(void); #define _Py_INC_REFTOTAL _Py_RefTotal++ #define _Py_DEC_REFTOTAL _Py_RefTotal-- -#define _Py_REF_DEBUG_COMMA , /* Py_REF_DEBUG also controls the display of refcounts and memory block * allocations at the interactive prompt and at interpreter shutdown @@ -743,7 +742,6 @@ PyAPI_FUNC(void) _PyDebug_PrintTotalRefs(void); #else #define _Py_INC_REFTOTAL #define _Py_DEC_REFTOTAL -#define _Py_REF_DEBUG_COMMA #endif /* Py_REF_DEBUG */ #ifdef COUNT_ALLOCS |