Mercurial > cpython-lru_cache-weakref
diff Include/Python.h @ 21197:ad7b4424aab6 legacy-trunk
Stop defining NDEBUG in Python.h, because it can interfere with
extensions that #include Python.h. See (rejected) patch 487634 for
more detail. I'll open a new bug report for the rest needed here.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Tue, 04 Dec 2001 20:06:11 +0000 |
| parents | e3751af0f1dd |
| children | c64fc56f6072 |
line wrap: on
line diff
--- a/Include/Python.h Tue Dec 04 19:47:46 2001 +0000 +++ b/Include/Python.h Tue Dec 04 20:06:11 2001 +0000 @@ -50,11 +50,10 @@ #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"
