[Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x gen_utils.h
Ken Hughes
khughes at pacific.edu
Fri Jun 2 21:42:09 CEST 2006
khughes (Ken Hughes) 2006/06/02 21:42:09 CEST
Modified files:
blender/source/blender/python/api2_2x gen_utils.h
Log:
===Python API===
Define macros for Py_RETURN_TRUE and Py_RETURN_FALSE (for Python 2.3). Also
make Py_RETURN_NONE macro a little safer. Current macro will not work as
expected in situations like below since it expands to two C statements:
if( !attr )
Py_RETURN_NONE;
Revision Changes Path
1.36 +8 -2 blender/source/blender/python/api2_2x/gen_utils.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/python/api2_2x/gen_utils.h.diff?r1=1.35&r2=1.36&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list