mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
parent
0d9cb5c392
commit
7f9680bd69
@ -77,7 +77,9 @@ DCClass(DCFile *dc_file, const string &name, bool is_struct, bool bogus_class) :
|
|||||||
_number = -1;
|
_number = -1;
|
||||||
_constructor = nullptr;
|
_constructor = nullptr;
|
||||||
|
|
||||||
|
#ifdef WITHIN_PANDA
|
||||||
_python_class_defs = nullptr;
|
_python_class_defs = nullptr;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -172,6 +172,9 @@ private:
|
|||||||
typedef pmap<int, DCField *> FieldsByIndex;
|
typedef pmap<int, DCField *> FieldsByIndex;
|
||||||
FieldsByIndex _fields_by_index;
|
FieldsByIndex _fields_by_index;
|
||||||
|
|
||||||
|
friend class DCField;
|
||||||
|
|
||||||
|
#ifdef WITHIN_PANDA
|
||||||
// See pandaNode.h for an explanation of this trick
|
// See pandaNode.h for an explanation of this trick
|
||||||
class PythonClassDefs : public ReferenceCount {
|
class PythonClassDefs : public ReferenceCount {
|
||||||
public:
|
public:
|
||||||
@ -179,8 +182,6 @@ private:
|
|||||||
};
|
};
|
||||||
PT(PythonClassDefs) _python_class_defs;
|
PT(PythonClassDefs) _python_class_defs;
|
||||||
|
|
||||||
friend class DCField;
|
|
||||||
#ifdef WITHIN_PANDA
|
|
||||||
friend class Extension<DCClass>;
|
friend class Extension<DCClass>;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
@ -599,7 +599,10 @@ char *dcyytext;
|
|||||||
#include "dcParser.h"
|
#include "dcParser.h"
|
||||||
#include "dcFile.h"
|
#include "dcFile.h"
|
||||||
#include "dcindent.h"
|
#include "dcindent.h"
|
||||||
|
|
||||||
|
#ifdef WITHIN_PANDA
|
||||||
#include "pstrtod.h"
|
#include "pstrtod.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static int yyinput(void); // declared by flex.
|
static int yyinput(void); // declared by flex.
|
||||||
|
@ -11,8 +11,10 @@
|
|||||||
#include "dcParser.h"
|
#include "dcParser.h"
|
||||||
#include "dcFile.h"
|
#include "dcFile.h"
|
||||||
#include "dcindent.h"
|
#include "dcindent.h"
|
||||||
#include "pstrtod.h"
|
|
||||||
|
|
||||||
|
#ifdef WITHIN_PANDA
|
||||||
|
#include "pstrtod.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
static int yyinput(void); // declared by flex.
|
static int yyinput(void); // declared by flex.
|
||||||
extern "C" int dcyywrap();
|
extern "C" int dcyywrap();
|
||||||
|
@ -70,6 +70,7 @@
|
|||||||
#define BEGIN_PUBLISH
|
#define BEGIN_PUBLISH
|
||||||
#define END_PUBLISH
|
#define END_PUBLISH
|
||||||
#define BLOCKING
|
#define BLOCKING
|
||||||
|
#define EXTENSION(x)
|
||||||
|
|
||||||
// These control the declspec(dllexport/dllimport) on Windows. When compiling
|
// These control the declspec(dllexport/dllimport) on Windows. When compiling
|
||||||
// outside of Panda, we assume we aren't part of a DLL.
|
// outside of Panda, we assume we aren't part of a DLL.
|
||||||
@ -100,6 +101,7 @@ typedef std::string Filename;
|
|||||||
#define pmap std::map
|
#define pmap std::map
|
||||||
#define pset std::set
|
#define pset std::set
|
||||||
#define vector_uchar std::vector<unsigned char>
|
#define vector_uchar std::vector<unsigned char>
|
||||||
|
#define patof(x) atof(x)
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user