[Python-checkins] CVS: python/dist/src/Include Python.h,2.39,2.40

Tim Peters tim_one@users.sourceforge.net
2001年12月04日 12:06:13 -0800


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv15493/python/Include
Modified Files:
	Python.h 
Log Message:
Stop defining NDEBUG in Python.h, because it can interfere with
extensions that #include Python.h. See (rejected) patch 487634 for
more detail. I'll open a new bug report for the rest needed here.
Index: Python.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/Python.h,v
retrieving revision 2.39
retrieving revision 2.40
diff -C2 -d -r2.39 -r2.40
*** Python.h	2001年10月05日 21:55:19	2.39
--- Python.h	2001年12月04日 20:06:11	2.40
***************
*** 51,59 ****
 #endif
 
! #ifndef Py_DEBUG
! #ifndef NDEBUG
! #define NDEBUG 1
! #endif
! #endif
 #include <assert.h>
 
--- 51,58 ----
 #endif
 
! /* CAUTION: Build setups should ensure that NDEBUG is defined on the
! * compiler command line when building Python in release mode; else
! * assert() calls won't be removed.
! */
 #include <assert.h>
 

AltStyle によって変換されたページ (->オリジナル) /