Kaydet (Commit) e1cd6c17 authored tarafından Guido van Rossum's avatar Guido van Rossum

don't use NDEBUG

üst 01b68fd2
...@@ -73,7 +73,7 @@ PyFrameObject * PyFrame_New ...@@ -73,7 +73,7 @@ PyFrameObject * PyFrame_New
/* Tuple access macros */ /* Tuple access macros */
#ifdef NDEBUG #ifndef DEBUG
#define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i)) #define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i))
#define GETITEMNAME(v, i) \ #define GETITEMNAME(v, i) \
PyString_AS_STRING((PyStringObject *)GETITEM((v), (i))) PyString_AS_STRING((PyStringObject *)GETITEM((v), (i)))
......
...@@ -28,10 +28,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -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 */ /* Object and type object interface */
/* /*
...@@ -81,7 +77,7 @@ whose size is determined when the object is allocated. ...@@ -81,7 +77,7 @@ whose size is determined when the object is allocated.
123456789-123456789-123456789-123456789-123456789-123456789-123456789-12 123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
*/ */
#ifndef NDEBUG #ifdef DEBUG
/* Turn on heavy reference debugging */ /* Turn on heavy reference debugging */
#define Py_TRACE_REFS #define Py_TRACE_REFS
...@@ -89,7 +85,7 @@ whose size is determined when the object is allocated. ...@@ -89,7 +85,7 @@ whose size is determined when the object is allocated.
/* Turn on reference counting */ /* Turn on reference counting */
#define Py_REF_DEBUG #define Py_REF_DEBUG
#endif /* NDEBUG */ #endif /* DEBUG */
#ifdef Py_TRACE_REFS #ifdef Py_TRACE_REFS
#define PyObject_HEAD \ #define PyObject_HEAD \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment