diff options
author | Guido van Rossum <guido@python.org> | 2001-07-15 16:58:05 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-07-15 16:58:05 (GMT) |
commit | b2c075bec452f66155d447ed9a1ae1a6479502a8 (patch) | |
tree | 441dd8832809eec7b1ae579712c7dbb3557250c7 | |
parent | 586b2e3f3df6134064af4231215c13d221087f3a (diff) | |
download | cpython-b2c075bec452f66155d447ed9a1ae1a6479502a8.zip cpython-b2c075bec452f66155d447ed9a1ae1a6479502a8.tar.gz cpython-b2c075bec452f66155d447ed9a1ae1a6479502a8.tar.bz2 |
Define NDEBUG when Py_DEBUG undefined, to disable the assert macro.
-rw-r--r-- | Include/Python.h | 4 |
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" |