]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Assertions key off NDEBUG
authorRaymond Hettinger <python@rcn.com>
Sat, 27 Jul 2013 06:14:22 +0000 (23:14 -0700)
committerRaymond Hettinger <python@rcn.com>
Sat, 27 Jul 2013 06:14:22 +0000 (23:14 -0700)
Modules/_collectionsmodule.c

index 3ff1d1fc7e37201466e9c39e51ba57dfd0e726b2..1f583b8c78df13d4e6920ef4c13284a7401faafd 100644 (file)
@@ -61,7 +61,7 @@ typedef struct BLOCK {
  * 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);