From 408027ea4635de5c892b28c4fdf41840eb9089a4 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 30 Dec 1996 16:17:54 +0000 Subject: Rename DEBUG macro to Py_DEBUG --- Include/frameobject.h | 2 +- Include/node.h | 2 +- Include/object.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Include') diff --git a/Include/frameobject.h b/Include/frameobject.h index 40dd65373e..85c1f4c10e 100644 --- a/Include/frameobject.h +++ b/Include/frameobject.h @@ -80,7 +80,7 @@ PyFrameObject * PyFrame_New /* Tuple access macros */ -#ifndef DEBUG +#ifndef Py_DEBUG #define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i)) #define GETITEMNAME(v, i) \ PyString_AS_STRING((PyStringObject *)GETITEM((v), (i))) diff --git a/Include/node.h b/Include/node.h index 03d674aa66..0575f4a80c 100644 --- a/Include/node.h +++ b/Include/node.h @@ -56,7 +56,7 @@ extern void PyNode_Free Py_PROTO((node *n)); #define STR(n) ((n)->n_str) /* Assert that the type of a node is what we expect */ -#ifndef DEBUG +#ifndef Py_DEBUG #define REQ(n, type) { /*pass*/ ; } #else #define REQ(n, type) \ diff --git a/Include/object.h b/Include/object.h index e876e91661..54b5481d49 100644 --- a/Include/object.h +++ b/Include/object.h @@ -84,7 +84,7 @@ whose size is determined when the object is allocated. 123456789-123456789-123456789-123456789-123456789-123456789-123456789-12 */ -#ifdef DEBUG +#ifdef Py_DEBUG /* Turn on heavy reference debugging */ #define Py_TRACE_REFS @@ -92,7 +92,7 @@ whose size is determined when the object is allocated. /* Turn on reference counting */ #define Py_REF_DEBUG -#endif /* DEBUG */ +#endif /* Py_DEBUG */ #ifdef Py_TRACE_REFS #define PyObject_HEAD \ -- cgit v1.2.1