diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2005-05-18 00:23:06 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2005-05-18 00:23:06 +0400 |
commit | 6356b6e8bdedd48b24d8ee706612c3de1cb15344 (patch) | |
tree | 59efcef8eedba4ac87324a9adcb27d994736e46a /source/blender/python/api2_2x/gen_utils.h | |
parent | 7753547b701a45304f537fe26eb43773e1aea629 (diff) |
add python 2.4ish macro Py_RETURN_NONE.
does incref and returns Py_None.
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 235e0c5e8ce..91021d970b9 100644 --- a/source/blender/python/api2_2x/gen_utils.h +++ b/source/blender/python/api2_2x/gen_utils.h @@ -51,6 +51,15 @@ #define Py_PI 3.14159265358979323846 +/* + 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 StringEqual( const char *string1, const char *string2 ); char *GetIdName( ID * id ); ID *GetIdFromList( ListBase * list, char *name ); |