Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Errors.h File Reference
#include "Define.h"
Include dependency graph for Errors.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Skyfire

Macros

#define ASSERT   WPAssert
#define WPAssert(cond, ...)
#define WPError(cond, msg)
#define WPFatal(cond, msg)
#define WPWarning(cond, msg)

Functions

void Skyfire::Assert (char const *file, int line, char const *function, char const *message)
void Skyfire::Error (char const *file, int line, char const *function, char const *message)
void Skyfire::Fatal (char const *file, int line, char const *function, char const *message)
void Skyfire::Warning (char const *file, int line, char const *function, char const *message)

Macro Definition Documentation

◆ ASSERT

#define ASSERT   WPAssert

Definition at line 29 of file Errors.h.

Referenced by Unit::_AddAura(), Unit::_ApplyAuraEffect(), Aura::_ApplyEffectForTargets(), Aura::_ApplyForTarget(), Unit::_CreateAuraApplication(), Unit::_EnterVehicle(), BattlegroundAB::_GetNodeNameId(), BattlegroundBFG::_GetNodeNameId(), AuraApplication::_HandleEffect(), AuraScript::_IsDefaultActionPrevented(), Creature::_IsTargetAcceptable(), Unit::_IsValidAssistTarget(), Unit::_IsValidAttackTarget(), Aura::_Remove(), Player::_SaveQuestObjectiveStatus(), Guild::_SendBankContentUpdate(), Unit::_TryStackingOrRefreshingExistingAura(), Unit::_UnapplyAura(), Unit::_UnapplyAura(), Aura::_UnapplyForTarget(), Movement::MoveSpline::_updateState(), AuctionHouseMgr::AddAItem(), AuctionHouseObject::AddAuction(), BattlegroundAV::AddAVCreature(), ObjectAccessor::AddCorpse(), Battleground::AddCreature(), Grid< Player, AllWorldObjectTypes, AllGridObjectTypes >::AddGridObject(), GossipMenu::AddMenuItem(), QuestMenu::AddMenuItem(), Player::AddMItem(), Battleground::AddObject(), Map::AddObjectToRemoveList(), WorldObject::AddObjectToRemoveList(), Map::AddObjectToSwitchList(), Vehicle::AddPassenger(), InstanceMap::AddPlayerToMap(), Map::AddPlayerToMap(), ScriptRegistry< TScript >::AddScript(), World::AddSession_(), Player::AddSpellAndCategoryCooldowns(), CharmInfo::AddSpellToActionBar(), GridObject< T >::AddToGrid(), Map::AddToMap(), ConditionMgr::addToSpellImplicitTargetConditions(), Item::AddToUpdateQueueOf(), Object::AddToWorld(), Object::AddUInt64Value(), Grid< Player, AllWorldObjectTypes, AllGridObjectTypes >::AddWorldObject(), SkyFire::Crypto::AEEncryptWithRandomIV(), ByteBuffer::append(), Player::ApplySpellMod(), SkyFire::Crypto::ARC4::ARC4(), BattlegroundAV::AssaultNode(), AuraApplication::AuraApplication(), DBCFileLoader::AutoProduceData(), DBCFileLoader::AutoProduceStrings(), ObjectMgr::BattlePetGetNewId(), PreparedStatement::BindParameters(), DynamicObject::BindToCaster(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::boss_deathbringer_saurfangAI(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::boss_flame_leviathan_seatAI(), boss_ick::boss_ickAI::boss_ickAI(), boss_ignis::boss_ignis_AI::boss_ignis_AI(), boss_kologarn::boss_kologarnAI::boss_kologarnAI(), boss_occuthar::boss_occutharAI::boss_occutharAI(), boss_rimefang::boss_rimefangAI::boss_rimefangAI(), Aura::BuildEffectMaskForOwner(), Object::BuildFieldsUpdate(), UpdateData::BuildPacket(), PathGenerator::BuildPolyPath(), Spell::CallScriptEffectHandlers(), BattlegroundMap::CanEnter(), InstanceMap::CanEnter(), BattlegroundSA::CaptureGraveyard(), BattlegroundAV::ChangeMineOwner(), Unit::ChangeSeat(), WintergraspCapturePoint::ChangeTeam(), Spell::CheckEffectExecuteData(), Guild::MoveItemData::CheckItem(), MySQLPreparedStatement::CheckValidIndex(), Unit::CleanupBeforeRemoveFromMap(), Guild::MoveItemData::CloneItem(), CompareValues(), Movement::Spline< length_type >::computeIndex(), Movement::Spline< length_type >::computeIndexInBounds(), Movement::MoveSpline::ComputePosition(), Aura::Create(), Corpse::Create(), Creature::Create(), GameObject::Create(), Group::Create(), Pet::Create(), Pet::CreateBaseAtCreature(), MapManager::CreateBaseMap(), MapInstanced::CreateBattleground(), ScriptMgr::CreateBattleground(), MapInstanced::CreateInstance(), ScriptMgr::CreateInstanceData(), Item::CreateItem(), TransportMgr::CreateLocalTransport(), TransportMgr::CreateLocalTransport(), ScriptMgr::CreateOutdoorPvP(), Map::CreatureRelocation(), Unit::DealDamage(), AuthCrypt::DecryptRecv(), BattlegroundAV::DefendNode(), Map::DelayedUpdate(), Corpse::DeleteBonesFromWorld(), Pet::DeleteFromDB(), Object::DestroyForPlayer(), BattlegroundAV::DestroyNode(), Spell::DoSpellHitOnUnit(), DynObjAura::DynObjAura(), Spell::EffectApplyAreaAura(), Spell::EffectApplyAura(), _SpellScript::EffectHook::EffectHook(), Spell::EffectPersistentAA(), Spell::EffectSummonPet(), EnchantDuration::EnchantDuration(), AuthCrypt::EncryptSend(), Map::EnsureGridLoaded(), Map::EnsureGridLoadedForActiveObject(), Movement::SplineBase::EvaluateBezier3(), Movement::SplineBase::EvaluateCatmullRom(), Movement::SplineBase::EvaluateDerivativeBezier3(), Movement::SplineBase::EvaluateDerivativeCatmullRom(), Movement::SplineBase::EvaluateDerivativeLinear(), Movement::SplineBase::EvaluateLinear(), BattlegroundAV::EventPlayerAssaultsPoint(), BattlegroundAV::EventPlayerDefendsPoint(), SQLQueryHolderTask::Execute(), VehicleJoinEvent::Execute(), Spell::ExecuteLogEffectCreateItem(), Spell::ExecuteLogEffectDestroyItem(), Spell::ExecuteLogEffectDurabilityDamage(), Spell::ExecuteLogEffectExtraAttacks(), Spell::ExecuteLogEffectOpenLock(), Spell::ExecuteLogEffectResurrect(), Spell::ExecuteLogEffectSummonObject(), Spell::ExecuteLogEffectTakeTargetPower(), Spell::ExecuteLogEffectUnsummonObject(), PreparedResultSet::Fetch(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::Finalize(), SkyFire::Impl::GenericHMAC< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::Finalize(), frand(), Map::GameObjectRelocation(), ObjectMgr::GenerateLowGuid(), TransportMgr::GeneratePath(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GenericHash(), SkyFire::Impl::GenericHMAC< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::GenericHMAC(), WorldObject::GetBaseMap(), Battleground::GetBgMap(), Field::GetBinarySizeChecked(), BigNumber::GetBytes(), Object::GetByteValue(), Player::GetCollisionHeight(), lfg::LFGMgr::GetCompatibleDungeons(), ObjectAccessor::GetCorpseForPlayerGUID(), ScriptMgr::GetCreatureAI(), ScriptMgr::GetDialogStatus(), ScriptMgr::GetDialogStatus(), Object::GetDynamicUInt32Value(), Aura::GetDynobjOwner(), Aura::GetEffect(), Object::GetFloatValue(), DBCFileLoader::GetFormatRecordSize(), ScriptMgr::GetGameObjectAI(), RegularGrid2D< GameObjectModel, BIHWrap< GameObjectModel > >::getGrid(), NGrid< MAX_NUMBER_OF_CELLS, Player, AllWorldObjectTypes, AllGridObjectTypes >::GetGridType(), NGrid< MAX_NUMBER_OF_CELLS, Player, AllWorldObjectTypes, AllGridObjectTypes >::GetGridType(), Object::GetInt32Value(), VMAP::VMapManager2::GetLiquidLevel(), WorldObject::GetMap(), MMAP::MMapManager::GetNavMeshQuery(), Player::GetNextQuest(), Map::getNGrid(), BattlegroundAV::GetNodeThroughObject(), DynamicMapTree::getObjectHitPos(), VMAP::StaticMapTree::getObjectHitPos(), ObjectAccessor::GetObjectInMap(), BattlegroundAV::GetObjectThroughNode(), Unit::GetProcAurasTriggeredOnEvent(), SkyFire::Crypto::GetRandomBytes(), CreatureTextMgr::GetRepeatGroup(), Condition::GetSearcherTypeMaskForCondition(), ConditionMgr::GetSearcherTypeMaskForConditionList(), Object::GetUInt16Value(), Object::GetUInt32Value(), Object::GetUInt64Value(), Aura::GetUnitOwner(), BattlegroundAV::GetWorldStateType(), WorldSocket::handle_input_header(), WorldSocket::handle_input_missing_data(), WorldSocket::handle_input_payload(), Aura::HandleAllEffects(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleCharCreateCallback(), AuraEffect::HandleEffect(), AuraEffect::HandleEffect(), WorldSession::HandleEjectPassenger(), WorldSession::HandleGroupInviteResponseOpcode(), WorldSession::HandleMovementOpcodes(), WorldSession::HandlePetActionHelper(), Object::HasByteFlag(), AuraApplication::HasEffect(), Object::HasFlag64(), Guild::BankMoveItemData::HasStoreRights(), Guild::BankMoveItemData::HasWithdrawRights(), SkyFire::Impl::HexStrToByteArray(), SkyFire::Crypto::ARC4::Init(), boss_flame_leviathan::boss_flame_leviathanAI::InitializeAI(), Movement::Spline< double >::initLengths(), Movement::SplineBase::InitLinear(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), Puppet::InitSummon(), Vehicle::InstallAccessory(), DisableMgr::IsDisabledFor(), VMAP::StaticMapTree::isInLineOfSight(), AuraEffect::IsPeriodicTickCrit(), ThreatCalcHelper::isValidProcess(), Player::KilledMonster(), Reference< TO, FROM >::link(), LoadDB2(), LoadDBC(), TransportMgr::LoadDBCStores, Player::LoadFromDB(), ConfigMgr::LoadInitial(), MMAP::MMapManager::loadMap(), MMAP::MMapManager::loadMapData(), ConfigMgr::LoadMore(), MMAP::MMapManager::LoadTile(), Guild::MoveItemData::LogAction(), Guild::BankMoveItemData::LogBankEvent(), Guild::PlayerMoveItemData::LogBankEvent(), MailReceiver::MailReceiver(), Condition::Meets(), Minion::Minion(), SpellCastTargets::ModDst(), Player::ModifyCurrency(), SpellCastTargets::ModSrc(), npc_bone_spike::npc_bone_spikeAI::npc_bone_spikeAI(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::npc_high_overlord_saurfangAI(), npc_iceborn_protodrake::npc_iceborn_protodrakeAI::npc_iceborn_protodrakeAI(), npc_mechanolift::npc_mechanoliftAI::npc_mechanoliftAI(), npc_orb_carrier::npc_orb_carrierAI::npc_orb_carrierAI(), ScriptMgr::OnAddCreaturePassenger(), ScriptMgr::OnAddPassenger(), ScriptMgr::OnAddPassenger(), ScriptMgr::OnAreaTrigger(), ScriptMgr::OnAuctionAdd(), ScriptMgr::OnAuctionExpire(), ScriptMgr::OnAuctionRemove(), ScriptMgr::OnAuctionSuccessful(), ScriptMgr::OnConditionCheck(), ScriptMgr::OnCreateMap(), ScriptMgr::OnCreatureUpdate(), ScriptMgr::OnCriteriaCheck(), ScriptMgr::OnDestroyMap(), ScriptMgr::OnDummyEffect(), ScriptMgr::OnDummyEffect(), ScriptMgr::OnDummyEffect(), ScriptMgr::OnDynamicObjectUpdate(), ScriptMgr::OnGainCalculation(), ScriptMgr::OnGameObjectDamaged(), ScriptMgr::OnGameObjectDestroyed(), ScriptMgr::OnGameObjectLootStateChanged(), ScriptMgr::OnGameObjectStateChanged(), ScriptMgr::OnGameObjectUpdate(), ScriptMgr::OnGossipHello(), ScriptMgr::OnGossipHello(), ScriptMgr::OnGossipSelect(), ScriptMgr::OnGossipSelect(), ScriptMgr::OnGossipSelectCode(), ScriptMgr::OnGossipSelectCode(), ScriptMgr::OnGroupAddMember(), ScriptMgr::OnGroupChangeLeader(), ScriptMgr::OnGroupDisband(), ScriptMgr::OnGroupInviteMember(), ScriptMgr::OnGroupRemoveMember(), ScriptMgr::OnInstall(), ScriptMgr::OnInstallAccessory(), ScriptMgr::OnItemExpire(), ScriptMgr::OnItemUse(), ScriptMgr::OnLoadGridMap(), ScriptMgr::OnMapUpdate(), ScriptMgr::OnPacketReceive(), ScriptMgr::OnPacketSend(), ScriptMgr::OnPlayerEnterMap(), ScriptMgr::OnPlayerLeaveMap(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestAccept(), ScriptMgr::OnQuestComplete(), ScriptMgr::OnQuestReward(), ScriptMgr::OnQuestReward(), ScriptMgr::OnQuestSelect(), ScriptMgr::OnRemovePassenger(), ScriptMgr::OnRemovePassenger(), ScriptMgr::OnReset(), ScriptMgr::OnSocketClose(), ScriptMgr::OnSocketOpen(), ScriptMgr::OnTransportUpdate(), ScriptMgr::OnUninstall(), ScriptMgr::OnUnknownPacketReceive(), ScriptMgr::OnUnloadGridMap(), ScriptMgr::OnWeatherChange(), ScriptMgr::OnWeatherUpdate(), UpdateMask::operator&=(), ObjectGuid::operator[](), ObjectGuid::operator[](), PreparedResultSet::operator[](), ResultSet::operator[](), UpdateMask::operator|=(), ChatHandler::ParseCommands(), Pet::Pet(), Map::PlayerRelocation(), BattlegroundAV::PopulateNode(), Aura::PrepareProcToTrigger(), Player::PrepareQuestMenu(), Unit::ProcDamageAndSpellFor(), WorldSocket::ProcessIncoming(), Creature::ProhibitSpellSchool(), Pet::ProhibitSpellSchool(), Player::ProhibitSpellSchool(), Puppet::Puppet(), Player::ReadMovementInfo(), Movement::ExtraMovementStatusElement::ReadNextElement(), Aura::RecalculateAmountOfEffects(), Player::RefundItem(), Vehicle::RelocatePassengers(), DynamicObject::RemoveAura(), Object::RemoveByteFlag(), Unit::RemoveCharmedBy(), ObjectAccessor::RemoveCorpse(), Object::RemoveFlag(), GridObject< T >::RemoveFromGrid(), GameObject::RemoveFromOwner(), Item::RemoveFromUpdateQueueOf(), Unit::RemoveFromWorld(), Bag::RemoveItem(), Guild::BankMoveItemData::RemoveItem(), RemoveItemsSetItem(), Unit::RemoveOwnedAura(), Unit::RemoveOwnedAura(), Vehicle::RemovePassenger(), Map::RemovePlayerFromMap(), Object::RemoveUInt64Value(), WorldObject::ResetMap(), ResultSet::ResultSet(), FreezeDetectorRunnable::Run(), InstanceSave::SaveToDB(), Pet::SaveToDB(), Movement::SplineBase::SegLengthBezier3(), Movement::SplineBase::SegLengthCatmullRom(), Movement::SplineBase::SegLengthLinear(), FactorySelector::selectAI(), Spell::SelectEffectImplicitTargets(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChannelTargets(), Spell::SelectImplicitConeTargets(), Spell::SelectImplicitNearbyTargets(), Spell::SelectImplicitTargetObjectTargets(), FactorySelector::selectMovementGenerator(), WorldSocketMgr::SelectNetworkThread(), ThreatContainer::selectNextVictim(), Battlefield::SendAreaSpiritHealerQueryOpcode(), Guild::SendGuildRanksUpdate(), Group::SendLooter(), BattlegroundAV::SendMineWorldStates(), DynamicObject::SetAura(), Object::SetByteFlag(), Object::SetByteValue(), Unit::SetCantProc(), BfCapturePoint::SetCapturePointData(), Unit::SetCharmedBy(), Unit::SetCurrentCastedSpell(), npc_saurfang_event::npc_saurfang_eventAI::SetData(), GameObject::SetDestructibleState(), Object::SetDynamicUInt32Value(), Object::SetFlag(), Object::SetFloatValue(), Player::SetGroup(), Object::SetInt32Value(), WorldObject::SetMap(), Unit::SetMinion(), Map::setNGrid(), Player::SetOriginalGroup(), GameObject::SetOwnerGUID(), Player::SetResurrectRequestData(), Object::SetUInt16Value(), Object::SetUInt32Value(), Object::SetUInt64Value(), Player::SetVirtualItemSlot(), SpellTargetSelector::SpellTargetSelector(), SkyFire::Impl::CryptoGenericsImpl::SplitFromBack(), Player::StopCastingCharm(), Bag::StoreItem(), Guild::PlayerMoveItemData::StoreItem(), WorldObject::SummonCreatureGroup(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), Unit::TauntApply(), Unit::TauntFadeOut(), Skyfire::Thread::Thread(), TotemAI::TotemAI(), Aura::TryCreate(), Aura::TryRefreshStackOrCreate(), DynamicObject::UnbindFromCaster(), Movement::SplineBase::UninitializedSpline(), InstanceMap::UnloadAll(), Map::UnloadGrid(), MMAP::MMapManager::unloadMap(), Aura::UnregisterSingleTarget(), TempSummon::UnSummon(), DynamicObject::Update(), ObjectAccessor::Update(), Unit::Update(), SkyFire::Crypto::ARC4::UpdateData(), SkyFire::Impl::GenericHash< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::UpdateData(), SkyFire::Impl::GenericHMAC< EVP_sha1, Constants::SHA1_DIGEST_LENGTH_BYTES >::UpdateData(), Player::UpdateEnchantTime(), MotionMaster::UpdateMotion(), Aura::UpdateOwner(), BattlegroundAV::UpdateScore(), Player::UpdateSoulboundTradeItems(), Movement::MoveSpline::updateState(), Movement::MoveSpline::updateState(), Aura::UpdateTargetMap(), Object::UpdateUInt32Value(), SkyFire::Crypto::SRP6::VerifyChallengeResponse(), ObjectGridEvacuator::Visit(), WGWorkshop::WGWorkshop(), WriteDB2RecordToPacket(), DB2Utilities::WriteItemDbReply(), DB2Utilities::WriteItemSparseDbReply(), Unit::WriteMovementInfo(), Movement::ExtraMovementStatusElement::WriteNextElement(), Aura::~Aura(), DynamicObject::~DynamicObject(), InstanceSave::~InstanceSave(), Map::~Map(), Object::~Object(), Spell::~Spell(), SpellEvent::~SpellEvent(), Transport::~Transport(), Unit::~Unit(), Vehicle::~Vehicle(), and WorldObject::~WorldObject().

◆ WPAssert

#define WPAssert ( cond,
... )
Value:
do { if (!(cond)) Skyfire::Assert(__FILE__, __LINE__, __FUNCTION__, #cond); } while (0)
void Assert(char const *file, int line, char const *function, char const *message)
Definition Errors.cpp:13

Definition at line 24 of file Errors.h.

◆ WPError

#define WPError ( cond,
msg )
Value:
do { if (!(cond)) Skyfire::Error(__FILE__, __LINE__, __FUNCTION__, (msg)); } while (0)
void Error(char const *file, int line, char const *function, char const *message)
Definition Errors.cpp:30

Definition at line 26 of file Errors.h.

◆ WPFatal

#define WPFatal ( cond,
msg )
Value:
do { if (!(cond)) Skyfire::Fatal(__FILE__, __LINE__, __FUNCTION__, (msg)); } while (0)
void Fatal(char const *file, int line, char const *function, char const *message)
Definition Errors.cpp:21

Definition at line 25 of file Errors.h.

Referenced by DatabaseWorkerPool< CharacterDatabaseConnection >::DatabaseWorkerPool(), DatabaseWorkerPool< CharacterDatabaseConnection >::Open(), and DatabaseWorkerPool< CharacterDatabaseConnection >::Open().

◆ WPWarning

#define WPWarning ( cond,
msg )
Value:
do { if (!(cond)) Skyfire::Warning(__FILE__, __LINE__, __FUNCTION__, (msg)); } while (0)
void Warning(char const *file, int line, char const *function, char const *message)
Definition Errors.cpp:38

Definition at line 27 of file Errors.h.