Go to the source code of this file.
Defines | |
#define | __HEX_ASSERT_VOID_CAST static_cast<void> |
#define | HexAssert(expr) |
Functions | |
void | HexAssertShutdown (const char *assertion, const char *file, int line, const char *function) __attribute__((__noreturn__)) |
Definition in file HexAssert.hpp.
#define __HEX_ASSERT_VOID_CAST static_cast<void> |
Definition at line 11 of file HexAssert.hpp.
#define HexAssert | ( | expr | ) |
(__HEX_ASSERT_VOID_CAST ((expr) ? 0 : \ (HexAssertShutdown(#expr, \ __FILE__, __LINE__, \ __PRETTY_FUNCTION__), 0)))
Definition at line 25 of file HexAssert.hpp.
Referenced by VCList::add(), StoneBoard::AddColor(), VCBuilder::AddNewFull(), HexBoard::AddStones(), VCBuilder::andClosure(), VC::AndVCs(), HexUctSearch::AppendGame(), InferiorCells::AssertPairwiseDisjoint(), BookUtil::BestMove(), GraphUtils::BFS(), VCBuilder::Build(), GroupBuilder::Build(), HexBoard::BuildVCs(), Groups::CaptainizeBitset(), BoardUtils::CenterPoint(), DfpnBounds::CheckConsistency(), BenzenePlayer::CheckEndgame(), PatternState::CheckRotatedPattern(), BenzeneHtpEngine::CmdEncodePattern(), BenzeneHtpEngine::CmdEvalInfluence(), BenzeneHtpEngine::CmdHandbookAdd(), HexPointUtil::colorEdge1(), HexPointUtil::colorEdge2(), HexColorSetUtil::ColorOrEmpty(), ICEngine::ComputeInferiorCells(), DfpnSolver::ComputeMaxChildIndex(), ConstBoard::ConstBoard(), HexPointUtil::coordsToPoint(), PatternState::CopyState(), VCPattern::CreatePatterns(), DfpnSolver::DeleteChildren(), HexPointUtil::DeltaX(), HexPointUtil::DeltaY(), DfpnHistory::Depth(), ConstBoard::Distance(), InferiorCells::Dominated(), VCBuilder::DoSearch(), VCPattern::Endpoint(), ICEngine::FillInMutualFillin(), TwoDistance::FindBest(), ICEngine::FindCaptured(), ICEngine::FindDominated(), ICEngine::FindMutualFillin(), ICEngine::FindPermanentlyInferior(), ICEngine::FindReversible(), ICEngine::FindVulnerable(), VCTypeUtil::fromString(), HexColorSetUtil::fromString(), HexUctPolicy::GenerateMove(), WolveSearch::GenerateMoves(), BookBuilder< PLAYER >::GenerateMoves(), HexUctPolicy::GenerateRandomMove(), StoneBoard::GetColor(), PatternUtil::GetExtensionFromGodel(), StoneBoard::GetLegal(), Pattern::getMoves1(), Pattern::getMoves2(), StoneBoard::GetPlayed(), Pattern::getWeight(), SequenceHash::Hash(), HexSgUtil::HexColorToSgColor(), BookUtil::ImportSolvedStates(), BenzenePlayer::InitSearch(), HexColorSetUtil::InSet(), BookUtil::InverseEval(), StoneBoard::IsBlack(), StoneBoard::IsColor(), HexPointUtil::isColorEdge(), StoneBoard::IsEmpty(), StoneBoard::IsLegal(), HexEvalUtil::IsLoss(), StoneBoard::IsOccupied(), StoneBoard::IsPlayed(), StoneBoard::IsWhite(), HexEvalUtil::IsWin(), VulPreCheck::KillLastMove(), MoHexPlayer::LastMoveFromHistory(), HexPointUtil::leftEdge(), IcePatternSet::LoadPatterns(), HexUctSharedPolicy::LoadPlayPatterns(), VCBuilder::MergeAndShrink(), DfpnSolver::MID(), BoardUtils::Mirror(), EndgameUtils::MovesToConsider(), HexUctUtil::MoveString(), ConstBoard::Nbs(), HexColorSetUtil::NotColor(), HexColorSetUtil::Only(), HexUctSearch::OnStartSearch(), VCBuilder::OrRule::operator()(), HexPointUtil::oppositeEdge(), DfsSolver::OrderMoves(), HexColorUtil::otherColor(), MoHexPlayer::PerformPreSearch(), HexUctPolicy::PickRandomPatternMove(), EndgameUtils::PlayDeterminedState(), StoneBoard::PlayMove(), HexBoard::PlayStones(), SwapCheck::PlaySwap(), HexEvalUtil::PlyToLoss(), HexEvalUtil::PlyToWin(), BoardUtils::PointInDir(), HexPointUtil::pointToCoords(), HexBoard::PopHistory(), BoardUtils::RandomEmptyCell(), StoneBoard::RemoveColor(), VCSet::Revert(), HexPointUtil::rightEdge(), BoardUtils::Rotate(), RingGodel::Score(), WolvePlayer::Search(), PerfectPlayer::Search(), MoHexPlayer::Search(), HandicapPlayer::Search(), HexAbSearch::SearchState(), DfpnSolver::SelectChild(), HandCodedPattern::set(), StoneBoard::SetColor(), StoneBoard::SetPosition(), PatternState::SetUpdateRadius(), HexSgUtil::SgColorToHexColor(), VC::ShrinkFull(), VC::ShrinkSemi(), VCList::simple_add(), DfsSolver::SolveInteriorState(), ProofUtil::StoreFlippedStates(), ProofUtil::StoreTranspositions(), HexUctUtil::ToSgBlackWhite(), VCTypeUtil::toString(), HexPointUtil::ToString(), HexColorSetUtil::toString(), HexColorUtil::toString(), MoHexPlayer::TryReuseSubtree(), StoneBoard::UndoMove(), Pattern::unserialize(), ZobristHash::Update(), PatternState::Update(), DfpnSolver::UpdateBounds(), DfpnSolver::GuiFx::UpdateCurrentBounds(), PatternState::UpdateRingGodel(), VC::UpgradeSemi(), VCUtils::ValidEdgeBridge(), VC::VC(), StoneBoard::WhoseTurn(), and ZobristHash::ZobristHash().
void HexAssertShutdown | ( | const char * | assertion, | |
const char * | file, | |||
int | line, | |||
const char * | function | |||
) |
Definition at line 244 of file HexProgram.cpp.
References HexProgram::Get(), LogSevere(), and HexProgram::Shutdown().