diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-12-04 20:06:11 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-12-04 20:06:11 (GMT) |
commit | 5defb1736d36ea44bbb8f613cd0031d68816819b (patch) | |
tree | fcf49cbd76af4ee6554099bd3a885cef510a7831 | |
parent | ecd8157a2ca0819c71bbafae698748e84cafdca8 (diff) | |
download | cpython-5defb1736d36ea44bbb8f613cd0031d68816819b.zip cpython-5defb1736d36ea44bbb8f613cd0031d68816819b.tar.gz cpython-5defb1736d36ea44bbb8f613cd0031d68816819b.tar.bz2 |
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.
-rw-r--r-- | Include/Python.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Include/Python.h b/Include/Python.h index c0eed94..0f07e36 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -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" |