Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Expressions/PyObjectPlus.h
| Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | |||||
| typedef struct { | typedef struct { | ||||
| bool warn_done; | bool warn_done; | ||||
| void *link; | void *link; | ||||
| } WarnLink; | } WarnLink; | ||||
| #define ShowDeprecationWarning(old_way, new_way) \ | #define ShowDeprecationWarning(old_way, new_way) \ | ||||
| { \ | { \ | ||||
| static WarnLink wlink = {false, NULL}; \ | 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.warn_done = true; \ | ||||
| wlink.link = NULL; \ | wlink.link = NULL; \ | ||||
| \ | \ | ||||
| if(wlink_last) { \ | if(wlink_last) { \ | ||||
| wlink_last->link= (void *)&(wlink); \ | wlink_last->link= (void *)&(wlink); \ | ||||
| SetDeprecationWarningLinkLast(&(wlink)); \ | PyObjectPlus::SetDeprecationWarningLinkLast(&(wlink)); \ | ||||
| } \ | } \ | ||||
| else { \ | else { \ | ||||
| SetDeprecationWarningFirst(&(wlink)); \ | PyObjectPlus::SetDeprecationWarningFirst(&(wlink)); \ | ||||
| SetDeprecationWarningLinkLast(&(wlink)); \ | PyObjectPlus::SetDeprecationWarningLinkLast(&(wlink)); \ | ||||
| } \ | } \ | ||||
| } \ | } \ | ||||
| } \ | } \ | ||||
| typedef struct PyObjectPlus_Proxy { | typedef struct PyObjectPlus_Proxy { | ||||
| PyObject_HEAD /* required python macro */ | PyObject_HEAD /* required python macro */ | ||||
| ▲ Show 20 Lines • Show All 546 Lines • Show Last 20 Lines | |||||