Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1cd6c1

Browse files
committed
don't use NDEBUG
1 parent 01b68fd commit e1cd6c1

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

Include/frameobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ PyFrameObject * PyFrame_New
7373

7474
/* Tuple access macros */
7575

76-
#ifdef NDEBUG
76+
#ifndef DEBUG
7777
#define GETITEM(v, i) PyTuple_GET_ITEM((PyTupleObject *)(v), (i))
7878
#define GETITEMNAME(v, i) \
7979
PyString_AS_STRING((PyStringObject *)GETITEM((v), (i)))

Include/object.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2828
2929
******************************************************************/
3030

31-
#ifndef DEBUG
32-
#define NDEBUG
33-
#endif
34-
3531
/* Object and type object interface */
3632

3733
/*
@@ -81,15 +77,15 @@ whose size is determined when the object is allocated.
8177
123456789-123456789-123456789-123456789-123456789-123456789-123456789-12
8278
*/
8379

84-
#ifndef NDEBUG
80+
#ifdef DEBUG
8581

8682
/* Turn on heavy reference debugging */
8783
#define Py_TRACE_REFS
8884

8985
/* Turn on reference counting */
9086
#define Py_REF_DEBUG
9187

92-
#endif /* NDEBUG */
88+
#endif /* DEBUG */
9389

9490
#ifdef Py_TRACE_REFS
9591
#define PyObject_HEAD \

0 commit comments

Comments
 (0)