rename and negate DISABLE_PYTHON --> WITH_PYTHON

This commit is contained in:
Campbell Barton
2010-10-31 04:11:39 +00:00
parent 50dab4fc37
commit 0876fce009
217 changed files with 477 additions and 505 deletions

View File

@@ -43,7 +43,7 @@
* Python defines
------------------------------*/
#ifndef DISABLE_PYTHON
#ifdef WITH_PYTHON
#ifdef USE_MATHUTILS
extern "C" {
#include "../../blender/python/generic/mathutils.h" /* so we can have mathutils callbacks */
@@ -459,7 +459,7 @@ typedef struct KX_PYATTRIBUTE_DEF {
------------------------------*/
typedef PyTypeObject * PyParentObject; // Define the PyParent Object
#else // DISABLE_PYTHON
#else // WITH_PYTHON
#ifdef WITH_CXX_GUARDEDALLOC
#define Py_Header \
@@ -505,7 +505,7 @@ public:
virtual ~PyObjectPlus(); // destructor
#ifndef DISABLE_PYTHON
#ifdef WITH_PYTHON
PyObject *m_proxy; /* actually a PyObjectPlus_Proxy */
/* These static functions are referenced by ALL PyObjectPlus_Proxy types
@@ -561,7 +561,7 @@ public:
static bool m_ignore_deprecation_warnings;
};
#ifndef DISABLE_PYTHON
#ifdef WITH_PYTHON
PyObject *py_getattr_dict(PyObject *pydict, PyObject *tp_dict);
#endif