diff Include/objimpl.h @ 32678:cada2e9b685c legacy-trunk

Formalize that the Py_VISIT macro requires that the tp_traverse implementation it's used in must give its arguments specific names.
author Tim Peters <tim.peters@gmail.com>
date Thu, 15 Jul 2004 04:05:59 +0000
parents 52beafd936c8
children 9d838dd967b2
line wrap: on
line diff
--- a/Include/objimpl.h	Wed Jul 14 21:56:19 2004 +0000
+++ b/Include/objimpl.h	Thu Jul 15 04:05:59 2004 +0000
@@ -302,7 +302,11 @@
 		( (type *) _PyObject_GC_NewVar((typeobj), (n)) )
 
 
-/* Utility macro to help write tp_traverse functions */
+/* Utility macro to help write tp_traverse functions.
+ * To use this macro, the tp_traverse function must name its arguments
+ * "visit" and "arg".  This is intended to keep tp_traverse functions
+ * looking as much alike as possible.
+ */
 #define Py_VISIT(op)					\
         do { 						\
                 if (op) {				\