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:
authorJean-Luc Peurière <jlp@nerim.net>2008-08-14 21:24:39 +0400
committerJean-Luc Peurière <jlp@nerim.net>2008-08-14 21:24:39 +0400
commit402449d5ae55b3eb5cc4db814dcc85b005b915dc (patch)
tree0c201574e6349b7f1c32452eef73164a401d5fdb
parent10968fde4da6abbfeede3cae9c3c291376a62580 (diff)
compatibility with py2.3 for GE
needed for os x
-rw-r--r--source/gameengine/Expressions/KX_Python.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/gameengine/Expressions/KX_Python.h b/source/gameengine/Expressions/KX_Python.h
index b8006fdf0ed..996bca05972 100644
--- a/source/gameengine/Expressions/KX_Python.h
+++ b/source/gameengine/Expressions/KX_Python.h
@@ -51,5 +51,21 @@
#endif
#endif
+/*
+ Py_RETURN_NONE
+ Python 2.4 macro.
+ defined here until we switch to 2.4
+*/
+#ifndef Py_RETURN_NONE
+#define Py_RETURN_NONE return Py_BuildValue("O", Py_None)
+#endif
+#ifndef Py_RETURN_FALSE
+#define Py_RETURN_FALSE return PyBool_FromLong(0)
+#endif
+#ifndef Py_RETURN_TRUE
+#define Py_RETURN_TRUE return PyBool_FromLong(1)
+#endif
+
+
#endif // KX_PYTHON_H