Go to the source code of this file.
#define EXCHANGE_COUNTED_OBJECTS | ( | x, | |||
y | ) | if ((x) != (y)) { if (x) { (x)->dereference(); } (x) = (y); if (x) { (x)->referenced(); } } |
Swaps two counted objects, with null pointer check and correct dereferencing of old object
Definition at line 96 of file ICountedObject.hpp.
Referenced by Exponent::GUI::Graphics::CImageManager::CImageReference::setImage(), Exponent::GUI::Controls::CMenuItem::setImages(), Exponent::GUI::Controls::CModulatedXYPad::setModulationHandle(), and Exponent::GUI::Controls::CSelectableMenuItem::setUnCheckedImage().
#define FORGET_COUNTED_OBJECT | ( | x | ) | if(x) { (x)->dereference(); } (x) = NULL; |
Dereferences an object and sets it to NULL
Definition at line 102 of file ICountedObject.hpp.