mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
fix compiling issues w/o python
This commit is contained in:
parent
27b8913ad9
commit
3fac39f032
@ -475,7 +475,9 @@ ai_format_generate(PyObject *distobj, int do_id,
|
||||
////////////////////////////////////////////////////////////////////
|
||||
DCClass::
|
||||
DCClass(const string &name) : _name(name) {
|
||||
#ifdef HAVE_PYTHON
|
||||
_class_def = NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -490,7 +492,9 @@ DCClass::
|
||||
delete (*fi);
|
||||
}
|
||||
|
||||
#ifdef HAVE_PYTHON
|
||||
Py_XDECREF(_class_def);
|
||||
#endif
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -90,7 +90,9 @@ private:
|
||||
typedef pvector<DCField *> Fields;
|
||||
Fields _fields;
|
||||
|
||||
#ifdef HAVE_PYTHON
|
||||
PyObject *_class_def;
|
||||
#endif
|
||||
|
||||
public:
|
||||
// These members are built up during parsing for the convenience of
|
||||
|
@ -75,7 +75,9 @@ using namespace std;
|
||||
// Panda defines some assert-type macros. We map those to the
|
||||
// standard assert macro outside of Panda.
|
||||
#define nassertr(condition, return_value) assert(condition)
|
||||
#define nassertr_always(condition, return_value) assert(condition)
|
||||
#define nassertv(condition) assert(condition)
|
||||
#define nassertv_always(condition) assert(condition)
|
||||
|
||||
// Panda defines these export symbols for building DLL's. Outside of
|
||||
// Panda, we assume we're not putting this code in a DLL, so we define
|
||||
|
Loading…
x
Reference in New Issue
Block a user