]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Define NDEBUG when Py_DEBUG undefined, to disable the assert macro.
authorGuido van Rossum <guido@python.org>
Sun, 15 Jul 2001 16:58:05 +0000 (16:58 +0000)
committerGuido van Rossum <guido@python.org>
Sun, 15 Jul 2001 16:58:05 +0000 (16:58 +0000)
Include/Python.h

index 23938720049f61c4bca1c8eda969feff5ac0b279..334116c4a91b9752a2b7a936844dc9c11f1ff47d 100644 (file)
 #ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #endif
+
+#ifndef Py_DEBUG
+#define NDEBUG 1
+#endif
 #include <assert.h>
 
 #include "pyport.h"