From 5defb1736d36ea44bbb8f613cd0031d68816819b Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 4 Dec 2001 20:06:11 +0000 Subject: 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. --- Include/Python.h | 9 ++++----- 1 file 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 #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" -- cgit v0.12