dconfig: Change export macros to EXP*_DTOOL_DCONFIG

This is for consistency with `panda`, which follows this format.
This commit is contained in:
Sam Edwards 2018-03-04 19:52:37 -07:00
parent 775fcb5b0b
commit 9739923593
3 changed files with 6 additions and 3 deletions

View File

@ -23,7 +23,7 @@
#include "dtoolbase.h" #include "dtoolbase.h"
#include "notifyCategoryProxy.h" #include "notifyCategoryProxy.h"
NotifyCategoryDecl(dconfig, EXPCL_DTOOLCONFIG, EXPTP_DTOOLCONFIG); NotifyCategoryDecl(dconfig, EXPCL_DTOOL_DCONFIG, EXPTP_DTOOL_DCONFIG);
NotifyCategoryDecl(microconfig, EXPCL_DTOOLCONFIG, EXPTP_DTOOLCONFIG); NotifyCategoryDecl(microconfig, EXPCL_DTOOL_DCONFIG, EXPTP_DTOOL_DCONFIG);
#endif #endif

View File

@ -30,7 +30,7 @@
* used primarily by Python code. For modern code, use the new * used primarily by Python code. For modern code, use the new
* ConfigVariable* interface instead of this deprecated interface. * ConfigVariable* interface instead of this deprecated interface.
*/ */
class EXPCL_DTOOLCONFIG DConfig { class EXPCL_DTOOL_DCONFIG DConfig {
PUBLISHED: PUBLISHED:
static INLINE bool GetBool(const string &sym, bool def = false); static INLINE bool GetBool(const string &sym, bool def = false);
static INLINE int GetInt(const string &sym, int def = 0); static INLINE int GetInt(const string &sym, int def = 0);

View File

@ -109,6 +109,9 @@
#define EXPCL_DTOOL_PRC EXPCL_DTOOLCONFIG #define EXPCL_DTOOL_PRC EXPCL_DTOOLCONFIG
#define EXPTP_DTOOL_PRC EXPTP_DTOOLCONFIG #define EXPTP_DTOOL_PRC EXPTP_DTOOLCONFIG
#define EXPCL_DTOOL_DCONFIG EXPCL_DTOOLCONFIG
#define EXPTP_DTOOL_DCONFIG EXPTP_DTOOLCONFIG
/* These two are always defined empty, because pystub is statically /* These two are always defined empty, because pystub is statically
built. But we leave the symbol around in case we change our minds built. But we leave the symbol around in case we change our minds