summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-07-15 16:58:05 (GMT)
committerGuido van Rossum <guido@python.org>2001-07-15 16:58:05 (GMT)
commitb2c075bec452f66155d447ed9a1ae1a6479502a8 (patch)
tree441dd8832809eec7b1ae579712c7dbb3557250c7 /Include
parent586b2e3f3df6134064af4231215c13d221087f3a (diff)
downloadcpython-b2c075bec452f66155d447ed9a1ae1a6479502a8.zip
cpython-b2c075bec452f66155d447ed9a1ae1a6479502a8.tar.gz
cpython-b2c075bec452f66155d447ed9a1ae1a6479502a8.tar.bz2
Define NDEBUG when Py_DEBUG undefined, to disable the assert macro.
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 2393872..334116c 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -49,6 +49,10 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+
+#ifndef Py_DEBUG
+#define NDEBUG 1
+#endif
#include <assert.h>
#include "pyport.h"