[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16115] branches/blender-2.47/source/ gameengine/Expressions/KX_Python.h: compatibility with py2.3 for GE

JLuc Peuriere jlp at nerim.net
Thu Aug 14 19:24:39 CEST 2008


Revision: 16115
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16115
Author:   lukep
Date:     2008-08-14 19:24:39 +0200 (Thu, 14 Aug 2008)

Log Message:
-----------
compatibility with py2.3 for GE
needed for os x

Modified Paths:
--------------
    branches/blender-2.47/source/gameengine/Expressions/KX_Python.h

Modified: branches/blender-2.47/source/gameengine/Expressions/KX_Python.h
===================================================================
--- branches/blender-2.47/source/gameengine/Expressions/KX_Python.h	2008-08-14 17:12:40 UTC (rev 16114)
+++ branches/blender-2.47/source/gameengine/Expressions/KX_Python.h	2008-08-14 17:24:39 UTC (rev 16115)
@@ -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
 





More information about the Bf-blender-cvs mailing list