]> granicus.if.org Git - python/commitdiff
don't use NDEBUG
authorGuido van Rossum <guido@python.org>
Fri, 24 May 1996 20:43:12 +0000 (20:43 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 24 May 1996 20:43:12 +0000 (20:43 +0000)
Include/frameobject.h
Include/object.h

index a38a85d542a8de9abf1156ff9e3caf36efe4e059..5bf94c38e439973b08534ea2f525e0a7f7087790 100644 (file)
@@ -73,7 +73,7 @@ PyFrameObject * PyFrame_New
 
 /* Tuple access macros */
 
-#ifdef NDEBUG
+#ifndef DEBUG
 #define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i))
 #define GETITEMNAME(v, i) \
        PyString_AS_STRING((PyStringObject *)GETITEM((v), (i)))
index 57277470180fef44264c0647c1eb325be8dffaf8..a79d1f7356dd277051c11558c8503f87209259da 100644 (file)
@@ -28,10 +28,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 ******************************************************************/
 
-#ifndef DEBUG
-#define NDEBUG
-#endif
-
 /* Object and type object interface */
 
 /*
@@ -81,7 +77,7 @@ whose size is determined when the object is allocated.
 123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
 */
 
-#ifndef NDEBUG
+#ifdef DEBUG
 
 /* Turn on heavy reference debugging */
 #define Py_TRACE_REFS
@@ -89,7 +85,7 @@ whose size is determined when the object is allocated.
 /* Turn on reference counting */
 #define Py_REF_DEBUG
 
-#endif /* NDEBUG */
+#endif /* DEBUG */
 
 #ifdef Py_TRACE_REFS
 #define PyObject_HEAD \