OregonCore  revision 3611e8a-git
Your Favourite TBC server
Errors.h File Reference
#include "Common.h"

Go to the source code of this file.

Macros

#define WPAssert(assertion)   { if (!(assertion)) { fprintf( stderr, "\n%s:%i in %s ASSERTION FAILED2:\n %s\n", __FILE__, __LINE__,__FUNCTION__, #assertion); assert( #assertion &&0 ); } }
 
#define WPError(assertion, errmsg)   if( ! (assertion) ) { sLog.outError( "%\n%s:%i in %s ERROR:\n %s\n", __FILE__, __LINE__, __FUNCTION__, (char *)errmsg ); assert( false ); }
 
#define WPWarning(assertion, errmsg)   if( ! (assertion) ) { sLog.outError( "\n%s:%i in %s WARNING:\n %s\n", __FILE__, __LINE__, __FUNCTION__, (char *)errmsg ); }
 
#define WPFatal(assertion, errmsg)   if( ! (assertion) ) { sLog.outError( "\n%s:%i in %s FATAL ERROR:\n %s\n", __FILE__, __LINE__, __FUNCTION__, (char *)errmsg ); assert( #assertion &&0 ); abort(); }
 
#define ASSERT   WPAssert
 

Macro Definition Documentation

#define ASSERT   WPAssert

Definition at line 33 of file Errors.h.

Referenced by Object::_BuildValuesUpdate(), MapManager::_createBaseMap(), InstanceSaveManager::_DelHelper(), Database::_ExecutePreparedStatement(), BattlegroundAB::_GetNodeNameId(), AuthSocket::_HandleLogonChallenge(), Creature::_IsTargetAcceptable(), Unit::_IsValidAssistTarget(), Unit::_IsValidAttackTarget(), VMAP::VMapManager2::_loadMap(), Movement::MoveSpline::_updateState(), AuctionHouseMgr::AddAItem(), AuctionHouseObject::AddAuction(), Unit::AddAura(), BattlegroundAV::AddAVCreature(), ObjectAccessor::AddCorpse(), TicketMgr::AddGMTicket(), ObjectMgr::AddGossipText(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddGridObject(), GossipMenu::AddMenuItem(), QuestMenu::AddMenuItem(), Player::AddMItem(), Map::AddObjectToRemoveList(), WorldObject::AddObjectToRemoveList(), Map::AddObjectToSwitchList(), Map::AddPlayerToMap(), InstanceMap::AddPlayerToMap(), World::AddSession_(), GridObject< Creature >::AddToGrid(), Item::AddToUpdateQueueOf(), Object::AddToWorld(), Object::AddUInt64Value(), Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), ByteBuffer::append(), AreaAura::AreaAura(), BattlegroundAV::AssaultNode(), Aura::Aura(), Object::BuildFieldsUpdate(), InstanceMap::CannotEnter(), BattlegroundMap::CannotEnter(), BattlegroundAV::ChangeMineOwner(), MapManager::checkAndCorrectGridStatesArray(), Unit::CleanupsBeforeDelete(), CompareValues(), Movement::Spline< length_type >::computeIndex(), Movement::Spline< length_type >::computeIndexInBounds(), Movement::MoveSpline::ComputePosition(), Player::ConvertInstancesToGroup(), Corpse::Create(), Pet::Create(), Creature::Create(), GameObject::Create(), MapInstanced::CreateBattleground(), MapInstanced::CreateInstance(), Item::CreateItem(), MapManager::CreateMap(), Map::CreatureRelocation(), Unit::DealDamage(), BattlegroundAV::DefendNode(), Map::DelayedUpdate(), Corpse::DeleteBonesFromWorld(), Object::DestroyForPlayer(), BattlegroundAV::DestroyNode(), Spell::EffectSummonPet(), 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(), Console::FatalError(), ChatHandler::FillMessageData(), HmacHash::Finalize(), ObjectMgr::GenerateLowGuid(), WorldObject::GetBaseMap(), Battleground::GetBgMap(), Object::GetByteValue(), ObjectAccessor::GetCorpseForPlayerGUID(), Object::GetFloatValue(), RegularGrid2D< T, Node, NodeCreatorFunc, PositionFunc >::getGrid(), NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridType(), Object::GetInt32Value(), VMAP::VMapManager2::GetLiquidLevel(), WorldObject::GetMap(), WardenBase::GetModuleForClient(), MMAP::MMapManager::GetNavMeshQuery(), Player::GetNextQuest(), Map::getNGrid(), BattlegroundAV::GetNodeThroughObject(), DynamicMapTree::getObjectHitPos(), VMAP::StaticMapTree::getObjectHitPos(), BattlegroundAV::GetObjectThroughNode(), CreatureTextMgr::GetRepeatGroup(), Player::GetTutorialInt(), Object::GetUInt16Value(), Object::GetUInt32Value(), Object::GetUInt64Value(), BattlegroundAV::GetWorldStateType(), WardenBase::HandleData(), WardenBase::HandleHashResult(), ChatHandler::HandleLevelUpCommand(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleMoveWorldportAckOpcode(), Object::HasByteFlag(), Object::HasFlag(), Object::HasFlag64(), WardenBase::Init(), WardenBase::InitializeModule(), Movement::Spline< int32 >::initLengths(), Movement::SplineBase::InitLinear(), TempSummon::InitStats(), Guardian::InitStatsForLevel(), VMAP::StaticMapTree::isInLineOfSight(), ThreatCalcHelper::isValidProcess(), LoadDBC(), Player::LoadFromDB(), MMAP::MMapManager::loadMap(), MMAP::MMapManager::loadMapData(), MailReceiver::MailReceiver(), Condition::Meets(), Minion::Minion(), ObjectGuidList::ObjectGuidList(), UpdateMask::operator&(), UpdateMask::operator&=(), CreatureTextLocalizer< Builder >::operator()(), PreparedValues::operator<<(), UpdateMask::operator|(), UpdateMask::operator|=(), ChatHandler::ParseCommands(), Map::PlayerRelocation(), BattlegroundAV::PopulateNode(), PreparedQueryResult::PreparedQueryResult(), Player::PrepareQuestMenu(), Player::ProhibitSpellSchool(), Puppet::Puppet(), QueryResult::QueryResult(), Unit::RemoveAura(), Object::RemoveByteFlag(), Unit::RemoveCharmedBy(), ObjectAccessor::RemoveCorpse(), Object::RemoveFlag(), GridObject< Creature >::RemoveFromGrid(), Item::RemoveFromUpdateQueueOf(), Unit::RemoveFromWorld(), Bag::RemoveItem(), RemoveItemsSetItem(), Map::RemovePlayerFromMap(), Object::RemoveUInt64Value(), WardenBase::RequestData(), WardenBase::RequestHash(), WorldObject::ResetMap(), ResizeUnitListByDistance(), Player::SatisfyQuestExclusiveGroup(), Player::SatisfyQuestPreviousQuest(), InstanceSave::SaveToDB(), Movement::SplineBase::SegLengthBezier3(), Movement::SplineBase::SegLengthCatmullRom(), Movement::SplineBase::SegLengthLinear(), FactorySelector::selectAI(), FactorySelector::selectMovementGenerator(), ThreatContainer::selectNextVictim(), Group::SendLooter(), BattlegroundAV::SendMineWorldStates(), Player::SendQuestUpdateAddCreatureOrGo(), Object::SetByteFlag(), Object::SetByteValue(), Unit::SetCharmedBy(), Unit::SetCurrentCastedSpell(), Object::SetFlag(), Object::SetFloatValue(), Player::SetGroup(), Object::SetInt32Value(), WorldObject::SetMap(), Unit::SetMinion(), Map::setNGrid(), ACE_Based::Thread::setPriority(), Player::SetTutorialInt(), Object::SetUInt16Value(), Object::SetUInt32Value(), Object::SetUInt64Value(), Player::SetVirtualItemSlot(), Spell::SummonClassPet(), WorldObject::SummonCreatureGroup(), Map::SwitchGridContainers(), Unit::TauntApply(), Unit::TauntFadeOut(), Transport::TeleportTransport(), ACE_Based::Thread::Thread(), ACE_Based::ThreadPriority::ThreadPriority(), Movement::SplineBase::UninitializedSpline(), InstanceMap::UnloadAll(), Map::UnloadGrid(), MMAP::MMapManager::unloadMap(), Aura::UnregisterSingleCastAura(), TempSummon::UnSummon(), WaypointMovementGenerator< T >::Update(), ObjectAccessor::Update(), Player::UpdateEnchantTime(), MotionMaster::UpdateMotion(), BattlegroundAV::UpdateScore(), Movement::MoveSpline::updateState(), ObjectGridEvacuator::Visit(), InstanceSave::~InstanceSave(), Map::~Map(), Object::~Object(), Unit::~Unit(), and WorldObject::~WorldObject().

#define WPAssert (   assertion)    { if (!(assertion)) { fprintf( stderr, "\n%s:%i in %s ASSERTION FAILED2:\n %s\n", __FILE__, __LINE__,__FUNCTION__, #assertion); assert( #assertion &&0 ); } }

Definition at line 26 of file Errors.h.

#define WPError (   assertion,
  errmsg 
)    if( ! (assertion) ) { sLog.outError( "%\n%s:%i in %s ERROR:\n %s\n", __FILE__, __LINE__, __FUNCTION__, (char *)errmsg ); assert( false ); }

Definition at line 28 of file Errors.h.

#define WPFatal (   assertion,
  errmsg 
)    if( ! (assertion) ) { sLog.outError( "\n%s:%i in %s FATAL ERROR:\n %s\n", __FILE__, __LINE__, __FUNCTION__, (char *)errmsg ); assert( #assertion &&0 ); abort(); }

Definition at line 31 of file Errors.h.

#define WPWarning (   assertion,
  errmsg 
)    if( ! (assertion) ) { sLog.outError( "\n%s:%i in %s WARNING:\n %s\n", __FILE__, __LINE__, __FUNCTION__, (char *)errmsg ); }

Definition at line 29 of file Errors.h.