Define NDEBUG when Py_DEBUG undefined, to disable the assert macro.

This commit is contained in:
Guido van Rossum 2001-07-15 16:58:05 +00:00
parent 586b2e3f3d
commit b2c075bec4
1 changed files with 4 additions and 0 deletions

View File

@ -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"