From: Tim Peters Date: Tue, 4 Dec 2001 20:06:11 +0000 (+0000) Subject: Stop defining NDEBUG in Python.h, because it can interfere with X-Git-Tag: v2.2.1c1~555 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5defb1736d36ea44bbb8f613cd0031d68816819b;p=python 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. --- diff --git a/Include/Python.h b/Include/Python.h index c0eed94ca3..0f07e367f6 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -50,11 +50,10 @@ #include #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 #include "pyport.h"