summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-04 16:05:51 +0000
committerBenjamin Peterson <benjamin@python.org>2009-04-04 16:05:51 +0000
commitc08abf52c10cc3b5dc9c67eb1c3c3e9290effde2 (patch)
tree4195671740b03d35645b57ba98c5f010550eae84 /Include
parent8ea0966c244783b84cdec2a3fb8f7ff643fb705c (diff)
downloadcpython-c08abf52c10cc3b5dc9c67eb1c3c3e9290effde2.tar.gz
revert r71159 since it broke the build
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/Include/object.h b/Include/object.h
index fb5376a2ed..cfca64f9ab 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -749,13 +749,11 @@ PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);
((PyObject*)(op))->ob_refcnt++)
#define Py_DECREF(op) \
- do { \
- if (_Py_DEC_REFTOTAL _Py_REF_DEBUG_COMMA \
- --((PyObject*)(op))->ob_refcnt != 0) \
- _Py_CHECK_REFCNT(op) \
- else \
- _Py_Dealloc((PyObject *)(op)) \
- } while (0)
+ if (_Py_DEC_REFTOTAL _Py_REF_DEBUG_COMMA \
+ --((PyObject*)(op))->ob_refcnt != 0) \
+ _Py_CHECK_REFCNT(op) \
+ else \
+ _Py_Dealloc((PyObject *)(op))
/* Safely decref `op` and set `op` to NULL, especially useful in tp_clear
* and tp_dealloc implementatons.