]> granicus.if.org Git - python/commitdiff
Stop defining NDEBUG in Python.h, because it can interfere with
authorTim Peters <tim.peters@gmail.com>
Tue, 4 Dec 2001 20:06:11 +0000 (20:06 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 4 Dec 2001 20:06:11 +0000 (20:06 +0000)
extensions that #include Python.h.  See (rejected) patch 487634 for
more detail.  I'll open a new bug report for the rest needed here.

Include/Python.h

index c0eed94ca32c44ebb693d13584d9737424ea6de4..0f07e367f64eeb76ca28615be4ca00b975dd9536 100644 (file)
 #include <stdlib.h>
 #endif
 
-#ifndef Py_DEBUG
-#ifndef NDEBUG
-#define NDEBUG 1
-#endif
-#endif
+/* CAUTION:  Build setups should ensure that NDEBUG is defined on the
+ * compiler command line when building Python in release mode; else
+ * assert() calls won't be removed.
+ */
 #include <assert.h>
 
 #include "pyport.h"