ManaPlus
Macros
delete2.h File Reference

(8b60d77)

Go to the source code of this file.

Macros

#define delete2(var)
 
#define delete2Arr(var)
 

Macro Definition Documentation

◆ delete2

#define delete2 (   var)
Value:
{\
delete var;\
var = nullptr;\
}

Definition at line 24 of file delete2.h.

Referenced by Being::addCast(), GuildManager::afterRemove(), ActorSprite::cleanupTargetCursors(), Ea::InventoryHandler::clear(), BeingEquipBackend::clear(), CompoundSprite::clear(), TouchManager::clear(), BeingInfo::clear(), TranslationManager::close(), Net::connectToServer(), createGuiWindows(), WindowManager::createWindows(), PlayerInfo::deinit(), MobileOpenGL2Graphics::deleteGLObjects(), ModernOpenGLGraphics::deleteGLObjects(), TextChunk::deleteImage(), GraphicsManager::deleteRenderers(), WindowManager::deleteValidateWindows(), WindowManager::deleteWindows(), destroyGuiWindows(), ServerDialog::downloadServerList(), Being::drawSpeech(), PlayerTableModel::freeWidgets(), Client::gameClear(), PlayerInfo::gameDestroyed(), TmwAthena::GeneralHandler::gameEnded(), EAthena::GeneralHandler::gameEnded(), Client::gameExec(), CutInWindow::hide(), GuildManager::init(), Client::initConfigListeners(), Font::insertChunk(), Being::logic(), mainGui(), EAthena::ClanRecv::processClanLeave(), EAthena::GuildRecv::processGuildExpulsionContinue(), EAthena::GuildRecv::processGuildLeave(), Ea::PartyRecv::processPartyLeave(), Ea::InventoryRecv::processPlayerStorageClose(), VirtFs::ZipReader::readArchiveInfo(), MapReader::readTileset(), CompoundSprite::redraw(), Window::reflowLayout(), GuildManager::reload(), Inventory::removeItemAt(), Being::removeSpecialEffect(), CompoundSprite::removeSprite(), Client::runValidate(), CharCreateDialog::setAttributes(), Being::setEmote(), Being::setLanguageId(), Being::setMap(), Item::setOptions(), Being::setShowName(), CutInWindow::show(), NpcDialog::showAvatar(), Being::showAwayBadge(), Being::showClanBadge(), Being::showGmBadge(), Being::showGuildBadge(), Being::showInactiveBadge(), Being::showName(), Being::showNameBadge(), Being::showPartyBadge(), Being::showShopBadge(), Being::showTeamBadge(), IPC::start(), Client::stateSwitchLogin1(), IPC::stop(), ItemDB::unload(), TouchManager::unload(), Net::unload(), SetupWindow::unloadAdditionalTabs(), AnimatedSprite::~AnimatedSprite(), AttrDisplay::~AttrDisplay(), Being::~Being(), BeingEquipBackend::~BeingEquipBackend(), Button::~Button(), BuyDialog::~BuyDialog(), CastingEffect::~CastingEffect(), ChangeEmailDialog::~ChangeEmailDialog(), ChangePasswordDialog::~ChangePasswordDialog(), Net::Character::~Character(), CharCreateDialog::~CharCreateDialog(), ChatTab::~ChatTab(), ChatWindow::~ChatWindow(), ClanWindow::~ClanWindow(), CutInWindow::~CutInWindow(), DebugWindow::~DebugWindow(), DidYouKnowWindow::~DidYouKnowWindow(), Dye::~Dye(), EmotePage::~EmotePage(), EmoteWindow::~EmoteWindow(), EquipmentWindow::~EquipmentWindow(), Game::~Game(), TmwAthena::GeneralHandler::~GeneralHandler(), EAthena::GeneralHandler::~GeneralHandler(), Gui::~Gui(), EAthena::GuildHandler::~GuildHandler(), GuildManager::~GuildManager(), GuiTable::~GuiTable(), Ea::InventoryHandler::~InventoryHandler(), InventoryWindow::~InventoryWindow(), Item::~Item(), ItemAmountWindow::~ItemAmountWindow(), ItemContainer::~ItemContainer(), LayoutCell::~LayoutCell(), LocalPlayer::~LocalPlayer(), LoginDialog::~LoginDialog(), MailEditWindow::~MailEditWindow(), MailViewWindow::~MailViewWindow(), MailWindow::~MailWindow(), Map::~Map(), MiniStatusWindow::~MiniStatusWindow(), NpcDialog::~NpcDialog(), Particle::~Particle(), ParticleContainer::~ParticleContainer(), Ea::PartyHandler::~PartyHandler(), PlayerTableModel::~PlayerTableModel(), Popup::~Popup(), ProgressBar::~ProgressBar(), ProgressIndicator::~ProgressIndicator(), QuestsWindow::~QuestsWindow(), QuitDialog::~QuitDialog(), RegisterDialog::~RegisterDialog(), ScrollArea::~ScrollArea(), SellDialog::~SellDialog(), ServerDialog::~ServerDialog(), Setup_Audio::~Setup_Audio(), Setup_Colors::~Setup_Colors(), Setup_Input::~Setup_Input(), Setup_Joystick::~Setup_Joystick(), Setup_Misc::~Setup_Misc(), Setup_Perfomance::~Setup_Perfomance(), Setup_Players::~Setup_Players(), Setup_Quick::~Setup_Quick(), Setup_Relations::~Setup_Relations(), Setup_Theme::~Setup_Theme(), Setup_Touch::~Setup_Touch(), Setup_Video::~Setup_Video(), Setup_Visual::~Setup_Visual(), SetupTabScroll::~SetupTabScroll(), ShopWindow::~ShopWindow(), ShortcutContainer::~ShortcutContainer(), ShortcutWindow::~ShortcutWindow(), SimpleAnimation::~SimpleAnimation(), SkillListBox::~SkillListBox(), SkillRectangleListBox::~SkillRectangleListBox(), SkillTab::~SkillTab(), Skin::~Skin(), Slider::~Slider(), SocialAttackTab::~SocialAttackTab(), SocialFriendsTab::~SocialFriendsTab(), SocialGuildTab::~SocialGuildTab(), SocialGuildTab2::~SocialGuildTab2(), SocialNavigationTab::~SocialNavigationTab(), SocialPartyTab::~SocialPartyTab(), SocialPickupTab::~SocialPickupTab(), SocialPlayersTab::~SocialPlayersTab(), SocialWindow::~SocialWindow(), SpecialLayer::~SpecialLayer(), StatusWindow::~StatusWindow(), Tab::~Tab(), TabbedArea::~TabbedArea(), TestMain::~TestMain(), Text::~Text(), TextChunk::~TextChunk(), TextCommandEditor::~TextCommandEditor(), TextSelectDialog::~TextSelectDialog(), TileAnimation::~TileAnimation(), TradeWindow::~TradeWindow(), UpdaterWindow::~UpdaterWindow(), Window::~Window(), and WorldSelectDialog::~WorldSelectDialog().

◆ delete2Arr

#define delete2Arr (   var)
Value:
{\
delete []var;\
var = nullptr;\
}

Definition at line 30 of file delete2.h.

Referenced by Ea::Network::~Network().