mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Rename DEBUG macro to Py_DEBUG
This commit is contained in:
parent
a0dc1c4a61
commit
408027ea46
11 changed files with 23 additions and 23 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
|
|
@ -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) \
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue