diff Include/Python.h @ 18606:730ab0bed6ab legacy-trunk

Define NDEBUG when Py_DEBUG undefined, to disable the assert macro.
author Guido van Rossum <guido@python.org>
date Sun, 15 Jul 2001 16:58:05 +0000
parents 32e7d0898eab
children faf7f171a9f3
line wrap: on
line diff
--- a/Include/Python.h	Sun Jul 15 09:11:14 2001 +0000
+++ b/Include/Python.h	Sun Jul 15 16:58:05 2001 +0000
@@ -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"