[Python-checkins] cpython: Assertions key off NDEBUG

raymond.hettinger python-checkins at python.org
Sat Jul 27 08:14:32 CEST 2013


http://hg.python.org/cpython/rev/35c88c53cf64
changeset:   84864:35c88c53cf64
user:        Raymond Hettinger <python at rcn.com>
date:        Fri Jul 26 23:14:22 2013 -0700
summary:
  Assertions key off NDEBUG

files:
  Modules/_collectionsmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -61,7 +61,7 @@
  * block is freed leaving another existing block as the new endpoint.
  */
 
-#ifdef Py_DEBUG
+#ifndef NDEBUG
 #define MARK_END(link)  link = NULL;
 #define CHECK_END(link) assert(link == NULL);
 #define CHECK_NOT_END(link) assert(link != NULL);

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list