building without python works again for the BGE
This commit is contained in:
@@ -461,6 +461,7 @@ typedef PyTypeObject * PyParentObject; // Define the PyParent Object
|
||||
|
||||
#else // DISABLE_PYTHON
|
||||
|
||||
#ifdef WITH_CXX_GUARDEDALLOC
|
||||
#define Py_Header \
|
||||
public: \
|
||||
void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:PyObjectPlus"); } \
|
||||
@@ -471,6 +472,16 @@ typedef PyTypeObject * PyParentObject; // Define the PyParent Object
|
||||
void *operator new(size_t num_bytes) { return MEM_mallocN(num_bytes, "GE:PyObjectPlusPtr"); } \
|
||||
void operator delete( void *mem ) { MEM_freeN(mem); } \
|
||||
|
||||
#else // WITH_CXX_GUARDEDALLOC
|
||||
|
||||
#define Py_Header \
|
||||
public: \
|
||||
|
||||
#define Py_HeaderPtr \
|
||||
public: \
|
||||
|
||||
#endif // WITH_CXX_GUARDEDALLOC
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user