diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-11-22 22:34:28 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-11-22 22:34:28 +0300 |
commit | 9664b7924fd8a0bc06b8d424e3e9f35c2ca6cf6e (patch) | |
tree | 0fd88bbd5e5d57702fc95ba0d46ac9d6cf12541d /source/blender/python/api2_2x/gen_utils.h | |
parent | fe29a3c64bbf2db87f9a6717c4a7a6b89a765d5b (diff) |
- accidentally removed a macro for returning Py_None for python 2.3
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.h')
-rw-r--r-- | source/blender/python/api2_2x/gen_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
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); |