From 9664b7924fd8a0bc06b8d424e3e9f35c2ca6cf6e Mon Sep 17 00:00:00 2001 From: Joseph Gilbert Date: Tue, 22 Nov 2005 19:34:28 +0000 Subject: [PATCH] - accidentally removed a macro for returning Py_None for python 2.3 --- source/blender/python/api2_2x/gen_utils.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h index 7b64944a6da..d0e618635a5 100644 --- a/source/blender/python/api2_2x/gen_utils.h +++ b/source/blender/python/api2_2x/gen_utils.h @@ -44,6 +44,15 @@ #define Py_WRAP 1024 #define Py_NEW 2048 +/* + Py_RETURN_NONE + Python 2.4 macro. + defined here until we switch to 2.4 +*/ +#ifndef Py_RETURN_NONE +#define Py_RETURN_NONE Py_INCREF( Py_None ); return Py_None +#endif + int EXPP_FloatsAreEqual(float A, float B, int floatSteps); int EXPP_VectorsAreEqual(float *vecA, float *vecB, int size, int floatSteps);