summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-06 06:45:48 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-06 06:45:48 (GMT)
commit48842714b948fa239392ddd7e207151d5fcb8bc7 (patch)
tree7fd1573b10b193f735a2685bb832900608513e7d /Include
parent0e0563ca2c6d67126f33ea077ddea19af71f14eb (diff)
downloadcpython-48842714b948fa239392ddd7e207151d5fcb8bc7.zip
cpython-48842714b948fa239392ddd7e207151d5fcb8bc7.tar.gz
cpython-48842714b948fa239392ddd7e207151d5fcb8bc7.tar.bz2
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Include')
-rw-r--r--Include/object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/object.h b/Include/object.h
index 0e67a4e..4179651 100644
--- a/Include/object.h
+++ b/Include/object.h
@@ -856,14 +856,14 @@ PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
*
* The safe way is:
*
- * Py_SETREF(op, op2);
+ * Py_XSETREF(op, op2);
*
* That arranges to set `op` to `op2` _before_ decref'ing, so that any code
* triggered as a side-effect of `op` getting torn down no longer believes
* `op` points to a valid object.
*/
-#define Py_SETREF(op, op2) \
+#define Py_XSETREF(op, op2) \
do { \
PyObject *_py_tmp = (PyObject *)(op); \
(op) = (op2); \