BGE: Fix ShowDeprecationWarning macro.

Reviewers: lordloki, brita_, sybren, moguri

Reviewed By: moguri

Differential Revision: https://developer.blender.org/D1144
This commit is contained in:
Thomas Szepe 2015-02-27 23:05:06 +01:00
parent fff8a519b8
commit 38c30c41d7
1 changed files with 6 additions and 6 deletions

View File

@ -65,21 +65,21 @@ typedef struct {
#define ShowDeprecationWarning(old_way, new_way) \
{ \
static WarnLink wlink = {false, NULL}; \
if ((m_ignore_deprecation_warnings || wlink.warn_done)==0) \
if ((PyObjectPlus::m_ignore_deprecation_warnings || wlink.warn_done)==0) \
{ \
ShowDeprecationWarning_func(old_way, new_way); \
PyObjectPlus::ShowDeprecationWarning_func(old_way, new_way); \
\
WarnLink *wlink_last= GetDeprecationWarningLinkLast(); \
WarnLink *wlink_last= PyObjectPlus::GetDeprecationWarningLinkLast(); \
wlink.warn_done = true; \
wlink.link = NULL; \
\
if(wlink_last) { \
wlink_last->link= (void *)&(wlink); \
SetDeprecationWarningLinkLast(&(wlink)); \
PyObjectPlus::SetDeprecationWarningLinkLast(&(wlink)); \
} \
else { \
SetDeprecationWarningFirst(&(wlink)); \
SetDeprecationWarningLinkLast(&(wlink)); \
PyObjectPlus::SetDeprecationWarningFirst(&(wlink)); \
PyObjectPlus::SetDeprecationWarningLinkLast(&(wlink)); \
} \
} \
} \