From: Guido van Rossum Date: Sun, 15 Jul 2001 16:58:05 +0000 (+0000) Subject: Define NDEBUG when Py_DEBUG undefined, to disable the assert macro. X-Git-Tag: v2.2a3~1157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2c075bec452f66155d447ed9a1ae1a6479502a8;p=thirdparty%2FPython%2Fcpython.git Define NDEBUG when Py_DEBUG undefined, to disable the assert macro. --- diff --git a/Include/Python.h b/Include/Python.h index 23938720049f..334116c4a91b 100644 --- a/Include/Python.h +++ b/Include/Python.h @@ -49,6 +49,10 @@ #ifdef HAVE_STDLIB_H #include #endif + +#ifndef Py_DEBUG +#define NDEBUG 1 +#endif #include #include "pyport.h"