forked from bartvdbraak/blender
BGE: Fix ShowDeprecationWarning macro.
Reviewers: lordloki, brita_, sybren, moguri Reviewed By: moguri Differential Revision: https://developer.blender.org/D1144
This commit is contained in:
parent
fff8a519b8
commit
38c30c41d7
@ -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)); \
|
||||
} \
|
||||
} \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user