Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToni Alatalo <antont@kyperjokki.fi>2005-11-22 14:18:34 +0300
committerToni Alatalo <antont@kyperjokki.fi>2005-11-22 14:18:34 +0300
commit3caeea233d4bc4045aa905147ab1234794e63cec (patch)
tree6e9ac461ed80dcebab9a850914f52a9df548d58c /source/blender/python/api2_2x/gen_utils.h
parent2e71e178730faa7434ca0e9021f7cd0370ad5a79 (diff)
trying to fix new armature compile probs on macs (w/ py 2.3 probably) by adding the 2.4 macros for returning python booleans.
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.h')
-rw-r--r--source/blender/python/api2_2x/gen_utils.h9
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 c69790075d1..51eccc293d2 100644
--- a/source/blender/python/api2_2x/gen_utils.h
+++ b/source/blender/python/api2_2x/gen_utils.h
@@ -53,6 +53,15 @@
#define Py_RETURN_NONE Py_INCREF( Py_None ); return Py_None
#endif
+/* more 2.4 macros..? */
+#ifndef Py_RETURN_TRUE
+#define Py_RETURN_TRUE Py_INCREF( Py_True ); return Py_True
+#endif
+
+#ifndef Py_RETURN_FALSE
+#define Py_RETURN_FALSE Py_INCREF( Py_False); return Py_False
+#endif
+
PyObject *EXPP_GetModuleConstant(char *module, char *constant);
int StringEqual( const char *string1, const char *string2 );