NCBI C++ ToolKit
Classes | Macros | Enumerations | Functions
Debugging Macros
+ Collaboration diagram for Debugging Macros:

Classes

class  CCheckMe< TValue >
 Wrapper around an object of type TValue, that makes it mandatory to check object value somehow after each assignment. More...
 

Macros

#define _ALWAYS_TRACE(message)
 Define macros to support debugging. More...
 
#define _ALWAYS_TRACE_EX(err_code, err_subcode, message)
 
#define _ALWAYS_TRACE_X(err_subcode, message)   _ALWAYS_TRACE_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
 
#define _ALWAYS_TRACE_XX(error_name, err_subcode, message)
 
#define NCBI_ALWAYS_TROUBLE(mess)   NCBI_NS_NCBI::CNcbiDiag::DiagTrouble(DIAG_COMPILE_INFO, mess)
 
#define NCBI_ALWAYS_ASSERT(expr, mess)
 
#define NCBI_ALWAYS_ASSERT_EXPR(expr, mess)   ((expr)?(void)0:NCBI_NS_NCBI::CNcbiDiag::DiagAssert(DIAG_COMPILE_INFO, #expr, mess))
 
#define NCBI_ALWAYS_VERIFY(expr, mess)   NCBI_ALWAYS_ASSERT(expr, mess)
 
#define _TRACE(message)   _ALWAYS_TRACE(message)
 
#define _TRACE_EX(err_code, err_subcode, message)   _ALWAYS_TRACE_EX(err_code, err_subcode, message)
 
#define _TRACE_X(err_subcode, message)   _ALWAYS_TRACE_X(err_subcode, message)
 
#define _TRACE_XX(error_name, err_subcode, message)   _ALWAYS_TRACE_XX(error_name, err_subcode, message)
 
#define NCBI_TROUBLE(mess)   NCBI_ALWAYS_TROUBLE(mess)
 
#define NCBI_ASSERT(expr, mess)   NCBI_ALWAYS_ASSERT(expr, mess)
 
#define NCBI_ASSERT_EXPR(expr, mess)   NCBI_ALWAYS_ASSERT_EXPR(expr, mess)
 
#define NCBI_VERIFY(expr, mess)   NCBI_ALWAYS_VERIFY(expr, mess)
 
#define _DEBUG_ARG(arg)   arg
 
#define _DEBUG_CODE(code)   do { code } while ( 0 )
 
#define _ASSERT(expr)   NCBI_ASSERT(expr, "")
 
#define _VERIFY(expr)   NCBI_VERIFY(expr, "")
 
#define _TROUBLE   NCBI_TROUBLE("")
 
#define _ALWAYS_ASSERT(expr)   NCBI_ALWAYS_ASSERT(expr, "")
 
#define _ALWAYS_VERIFY(expr)   NCBI_ALWAYS_VERIFY(expr, "")
 
#define _ALWAYS_TROUBLE   NCBI_ALWAYS_TROUBLE("")
 
#define CHECKME_VALIDATE(condition, error_type)
 

Enumerations

enum  EValidateAction { eValidate_Default = 0, eValidate_Abort, eValidate_Throw }
 Which action to perform. More...
 
enum  ECheckMeError { eCheckMe_Unused, eCheckMe_Unset }
 

Functions

void xncbi_SetValidateAction (EValidateAction action)
 Set the action to be performed. More...
 
EValidateAction xncbi_GetValidateAction (void)
 Get the action to be performed. More...
 
void xncbi_CCheckMe_ReportError (ECheckMeError error)
 

Detailed Description

Macro Definition Documentation

#define _ALWAYS_ASSERT (   expr)    NCBI_ALWAYS_ASSERT(expr, "")

Definition at line 162 of file ncbidbg.hpp.

#define _ALWAYS_TRACE (   message)
Value:
( NCBI_NS_NCBI::CNcbiDiag(DIAG_COMPILE_INFO, \
<< message << NCBI_NS_NCBI::Endm )
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
Definition: ncbidiag.hpp:169
Trace message.
Definition: ncbidiag.hpp:651

Define macros to support debugging.

Definition at line 65 of file ncbidbg.hpp.

#define _ALWAYS_TRACE_EX (   err_code,
  err_subcode,
  message 
)
Value:
( NCBI_NS_NCBI::CNcbiDiag(DIAG_COMPILE_INFO, \
<< NCBI_NS_NCBI::ErrCode( (err_code), (err_subcode) ) \
<< message << NCBI_NS_NCBI::Endm )
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
Definition: ncbidiag.hpp:169
Trace message.
Definition: ncbidiag.hpp:651
#define ErrCode()
Get the error code for the last failed system function.
Definition: mdb.c:369

Definition at line 70 of file ncbidbg.hpp.

#define _ALWAYS_TRACE_X (   err_subcode,
  message 
)    _ALWAYS_TRACE_XX(NCBI_USE_ERRCODE_X, err_subcode, message)

Definition at line 76 of file ncbidbg.hpp.

#define _ALWAYS_TRACE_XX (   error_name,
  err_subcode,
  message 
)
Value:
( (NCBI_CHECK_ERR_SUBCODE_X_NAME(error_name, err_subcode)), \
_ALWAYS_TRACE_EX(NCBI_ERRCODE_X_NAME(error_name), err_subcode, message) )
#define _ALWAYS_TRACE_EX(err_code, err_subcode, message)
Definition: ncbidbg.hpp:70
#define NCBI_CHECK_ERR_SUBCODE_X_NAME(name, subcode)
Issue compile-time error if error subcode given is not valid for given error code name...
Definition: ncbidiag.hpp:444
#define NCBI_ERRCODE_X_NAME(name)
Returns value of error code by its name defined by NCBI_DEFINE_ERRCODE_X.
Definition: ncbidiag.hpp:341

Definition at line 79 of file ncbidbg.hpp.

#define _ALWAYS_TROUBLE   NCBI_ALWAYS_TROUBLE("")

Definition at line 164 of file ncbidbg.hpp.

#define _ALWAYS_VERIFY (   expr)    NCBI_ALWAYS_VERIFY(expr, "")

Definition at line 163 of file ncbidbg.hpp.

#define _ASSERT (   expr)    NCBI_ASSERT(expr, "")

Definition at line 158 of file ncbidbg.hpp.

#define _DEBUG_ARG (   arg)    arg
#define _DEBUG_CODE (   code)    do { code } while ( 0 )

Definition at line 134 of file ncbidbg.hpp.

#define _TRACE (   message)    _ALWAYS_TRACE(message)

Definition at line 120 of file ncbidbg.hpp.

Referenced by CResultSetMetaData::Action(), CDBAPIBulkInsert::Action(), CDataSource::Action(), CCursor::Action(), CResultSet::Action(), CStatement::Action(), CConnection::Action(), CDensityMap< CntType >::AddAlignments(), CRgbaGradColorTable::AddColor(), CBlastScopeSource::AddDataLoaders(), CActiveObject::AddListener(), CEventHandler::AddListener(), CFileCode::AddType(), CBlastOptionsBuilder::AdjustProgram(), CMsvcConfigure::AnalyzeDefines(), CNcbiApplication::AppMain(), CPluginValue::AsString(), CDB_Connection::BCPIn(), BlastFormatter_PreFetchSequenceData(), CProjectTreeBuilder::BuildProjectTree(), CStatement::CacheResultSet(), CSeqAnnotFromFasta::CacheSequences(), CPhyloTreePS::CalcForces(), CSearch< LEGACY, NHITS >::CalcNSort(), CMSSpectrumMatch::CalcPoissonMean(), CBlastDbDataLoader::CBlastDbDataLoader(), CBlobOStream::CBlobOStream(), CByteStreamBuf::CByteStreamBuf(), CConnection::CConnection(), CGlResMgr::CGlResMgr(), CConnection::CloneCDB_Conn(), CNcbiApplogApp::Cmd_Health(), CPhyloTreeDataSource::CollapseSelected(), CDB_BCPInCmd::CompleteBatch(), CDB_BCPInCmd::CompleteBCP(), CMsvcConfigure::Configure(), AbstractParser::CopyLineComment(), CPager::CPager(), CSeqMaskerOstatOpt::createCacheBitArray(), CMsvcConfigure::CreateConfH(), CAlnMultiDSBuilder::CreateDataSource(), CDbapiCtlibCFBase::CreateInstance(), CPluginManager< TClass >::CreateInstanceFromKey(), CPluginManager< TClass >::CreateInstanceFromList(), CRemoteBlastDbDataLoader::CRemoteBlastDbDataLoader(), CResultSet::CResultSet(), CSQLITE3_Statement::CSQLITE3_Statement(), CDB_Connection::Cursor(), CPhyloTreeDataSource::Cut(), CWinMaskConfig::CWinMaskConfig(), CWorkbenchFrame::CWorkbenchFrame(), CWriteDB_ConsolidateAliasFiles(), CSeqAnnotFromFasta::DetermineMasterIndex(), CDBConnectionFactory::DispatchServerName(), CDisplaySeqalign::DisplaySeqalign(), CSeqMaskerOstatOpt::doFinalize(), CPsiBlastApp::DoIterations(), CSeqMasker::DoMask(), CGlZoomLens::Draw(), CDataSource::DropTSE(), IPhyloTreeRender::CExtentDimension::DumpExtent(), IPhyloTreeRender::CProjectionExtents::DumpExtents(), CPhyloTreeCalculator::DumpStats(), IRegistry::EnumerateEntries(), IRegistry::EnumerateInSectionComments(), CDelayedOfstream::equals(), CCallableStatement::Execute(), CNcbiRelocateCommand::Execute(), CChangePhyloPropertyCmd::Execute(), CCodeGenerator::ExternalResolve(), CMergeTreeAligner::GenerateAlignments(), CInversionMergeAligner::GenerateAlignments(), CMergeAligner::GenerateAlignments(), CBlastAligner::GenerateAlignments(), CInstancedAligner::GenerateAlignments(), CRemoteBlastAligner::GenerateAlignments(), CChoiceTypeStrings::GenerateClassCode(), CClassTypeStrings::GenerateClassCode(), CProjBulderApp::GenerateMacProjects(), CProjBulderApp::GenerateMsvcProjects(), CPluginManagerGetter< Interface >::Get(), IRegistry::Get(), CGlUtils::GetAccelerated(), CFindRSites::GetAnnot(), CConnection::GetAuxConn(), IRegistry::GetComment(), CGLContextCache::GetContext(), CTableImportColumn::GetDataTypeFromString(), CCharHistogram::GetDelimiterProbablities(), CPager::GetDisplayedPage(), GetDisplayPPI(), CEditObjectSeq_feat::GetEditCommand(), CEditObjectSeq_desc::GetEditCommand(), CDll::GetEntryPoint(), CPluginManager< TClass >::GetFactory(), CDataTypeModule::GetFileNamePrefix(), CFileModules::GetFileNamePrefix(), CSeqGraphicRenderer::GetHeight(), CBlastInput::GetNextSeqBatch(), CBlastInput::GetNextSeqLocBatch(), GetOverlappingFeatures(), CPager::GetPageSize(), GetQueryBatchSize(), CGridWidget::GetSelectedObjectsOrdered(), CAsnCache::GetSeqIds(), CAutoOutputFileReset::GetStream(), CRgbaGradColorTable::GetTexCoordColor(), GetVideoId(), CTextUtil::GetWordFrequencies(), IImageGrabber::GrabImage(), IImageGrabber::GrabImages(), CDB_UserHandler_Deferred::HandleAll(), CToMultiExHandler::HandleIt(), CDB_UserHandler_Deferred::HandleIt(), CNcbiResource::HandleRequest(), IRegistry::HasEntry(), CCallableStatement::HasMoreResults(), CQueryImpl::HasMoreResultSets(), CCdFromFasta::ImportAlignmentData(), CResultSet::Init(), CImage::Init(), CInputStreamSource::InitFilesInDirSubtree(), CMsvcConfigure::InitializeFrom(), InitializeQueryDataLoaderConfiguration(), InitializeSubject(), CInputStreamSource::InitManifest(), CBlastFormatUtil::InsertSubjectScores(), CPager::IsPagerCommand(), CDB_Connection::LangCmd(), CMapItem::Layout(), C2DLayoutEngine::Layout(), CGlTexture::Load(), CDll::Load(), CBamRefSeqInfo::LoadAlignChunk(), CCSRARefSeqInfo::LoadAnnotAlignChunk(), CCSRARefSeqInfo::LoadAnnotPileupChunk(), CCompoundRWRegistry::LoadBaseRegistries(), CCSRADataLoader_Impl::LoadChunk(), CTextAlignObjectLoader::LoadFromStream(), CPubseqReader::LoadGiHash(), CPubseqReader::LoadGiSeq_ids(), CBamRefSeqInfo::LoadPileupChunk(), CBamRefSeqInfo::LoadRanges(), CCSRARefSeqInfo::LoadRanges(), CCSRARefSeqInfo::LoadRefSeqChunk(), LoadScope(), CPubseqReader::LoadSeq_idAccVer(), CPubseqReader::LoadSeq_idInfo(), CBamRefSeqInfo::LoadSeqChunk(), LoadSequencesToScope(), CRgbaGradColorTable::LoadTexture(), main(), CSeqAnnotFromFasta::MakeAsIsSeqAnnot(), MakeFileName(), CSeqAnnotFromFasta::MakeIBMSeqAnnot(), CDBConnectionFactory::MakeValidConnection(), CPhyloTreeDataSource::MoveNode(), CConnection::MsgToEx(), ncbi_q_error(), NcbiSys_main(), CAlnMultiHeader::NeedTooltip(), CPhyloTreeDataSource::NewNode(), CResultSet::Next(), CCompareSeqRegions::NextComparisonGroup(), CActiveObject::Notify(), CGlWidgetBase::OnAllEvents(), CAutoCompleteCombo::OnIdle(), CAutoCompleteCombo::OnItemSelected(), CAutoCompleteCombo::OnKeyDown(), CwxTreeLabelEdit::OnOkClick(), CProjectViewBase::OnProjectChanged(), CAttribTableDelimitersPanel::OnSplitColBtnClick(), CTaxTreeTestDlg::OnSubmitClick(), CAutoCompleteCombo::OnTextChanged(), CDelayedOfstream::open(), CBDB_CacheIWriter::OpenOverflowFile(), CWinMaskCountsConverter::operator()(), CWinMaskCountsGenerator::operator()(), CByteStreamBuf::overflow(), CPhyloTreeDataSource::Paste(), Path(), CChangePhyloPropertyCmd::PerformEdit(), CChangePhyloExpandCollapseCmd::PerformEdit(), CBioSourcePanel::PopulateBioSource(), CAppPopup::PopupURL(), CSeqMaskerScoreMeanGlob::PostAdvance(), IImageGrabber::PreviewImages(), CBlastFormatterApp::PrintFormattedOutput(), CObjectsSniffer::ProbeASN1_Bin(), CObjectsSniffer::ProbeText(), CCgiSampleApplication::ProcessRequest(), CNlmZipBtRdr::Read(), CResultSet::Read(), CGFFReader::Read(), CMsvcProjectMakefile::Redefine(), RegisterOMDataLoader(), CPluginManager< TClass >::RegisterWithEntryPoint(), CMetaRegistry::SEntry::Reload(), CCgiRedirectApplication::RemapEntries(), CPhyloTreeDataSource::Remove(), CActiveObject::RemoveListener(), CEventHandler::RemoveListener(), CPhyloTreeDataSource::RemoveSelected(), CQueryImpl::RequireRowCount(), CGBDataLoader::ResolveConflict(), CProjectTreeBuilder::ResolveDefs(), CCodeGenerator::ResolveInAnyModule(), CDelayedOfstream::rewrite(), CRunTestApplication::Run(), CSeqDescrRetrievalJob::Run(), CWinMaskDemoApplication::Run(), CPsiBlastApp::Run(), CWinMaskApplication::Run(), CAlnMrgApp::Run(), COMSSA::Run(), CBlastPrelimSearch::Run(), CCgiApplication::Run(), COMSSABase::RunSearch(), s_BlastResults2SeqAlignDatabaseSearch_OMF(), s_ComputeNumSequencesAndDbLength(), s_CreateAliasFilePriv(), CAscii85::s_Encode(), s_ExpandSubNodes(), s_ImportSearchStrategy(), s_RegisterOMDataLoader(), CImageUtil::Scale(), CDB_RPCCmd::Send(), CDB_Connection::SendData(), CDB_Connection::SendDataCmd(), IRWRegistry::Set(), CMySQL_Connection::SetCancelTimeout(), CDBL_Connection::SetCancelTimeout(), IRWRegistry::SetComment(), CDB_Connection::SetDatabaseName(), CDataSource::SetLogStream(), CSearch< LEGACY, NHITS >::SetResult(), CMySQL_Connection::SetTimeout(), CDBL_Connection::SetTimeout(), CTL_Connection::SetTimeout(), sMapInterval(), CQuerySplitter::Split(), SplitQuery_CalculateNumChunks(), SplitQuery_GetChunkSize(), SplitQuery_GetOverlapChunkSize(), CPhyloForce::StopLayout(), CSimpleDictionary::SuggestAlternates(), CQuerySet::ToBestSeqAlignSet(), CByteStreamBuf::underflow(), CChangePhyloPropertyCmd::Unexecute(), CDll::Unload(), CPluginManager< TClass >::UnregisterFactory(), IRWRegistry::Unset(), CPhyloTreePS::Update(), CVariantInfo::UpdateDelayedBuffer(), CSymbolGuard::UpdateSymbols(), CGlRender::Vertex3f(), CReader::WaitBeforeNewConnection(), CPluginManager< TClass >::WillExtendCapabilities(), CObjectOStream::AsnIo::Write(), CTableImportListCtrl::WriteWidths(), CTooltipFrame::x_AddLineToWidget(), CReader::x_AllocConnection(), CPhyloTreePS::x_ApplyNeighborCellForces(), CPhyloTreePS::x_ApplyRepulsiveForces(), CPhyloTreePS::x_ApplyRepulsiveForcesHashed(), CBlastPrelimSearch::x_BuildStdSegList(), IRegistry::x_CheckFlags(), CConn_Streambuf::x_Close(), CQueryImpl::x_Close(), CQuerySplitter::x_ComputeChunkRanges(), CQuerySplitter::x_ComputeContextOffsets_NonTranslatedQueries(), CQuerySplitter::x_ComputeContextOffsets_TranslatedQueries(), CQuerySplitter::x_ComputeQueryIndicesForChunks(), CDatabase::x_ConnectAsNeeded(), CPubseqReader::x_ConnectAtSlot(), CProjectViewBase::x_CreateMenuBarMenu(), CAlnMultiDSBuilder::x_CreateSparseDataSource(), CBuildDatabase::x_EndBuild(), CMemoryRegistry::x_Enumerate(), CQueryImpl::x_Fetch(), CTableDataValidateJob::x_FetchAll(), CMetaRegistry::x_FindRegistry(), CAlignFilter::x_GetAlignmentScore(), CAsnCache::x_GetBlob(), CSeqGraphicConfigPanel::x_GetFakeDataSource(), CSimpleDictionary::x_GetMetaphoneKeys(), CBlastDbDataLoader::x_GetOid(), CBlastScopeSource::x_InitBlastDatabaseDataLoader(), CBlastScopeSource::x_InitGenbankDataLoader(), CBlastHitMatrix::x_InitGraphics(), CAnnotType_Index::x_InitIndexTables(), CGlTexture::x_InitTexObj(), CBlastPrelimSearch::x_LaunchMultiThreadedSearch(), CMetaRegistry::x_Load(), SDataLoaderConfig::x_LoadDataLoadersConfig(), CBamRefSeqInfo::x_LoadRangesScan(), CBamRefSeqInfo::x_LoadRangesStat(), CCSRARefSeqInfo::x_LoadRangesStat(), CProjectView::x_OnSetSelection(), CXcompareAnnotsApplication::x_ProcessComparison(), CXcompareAnnotsApplication::x_ProcessMappingRanges(), CXcompareAnnotsApplication::x_ProcessSeqAlignSetFromFile(), CUpdateAlign::x_ReadAlign(), CPubseqReader::x_ReceiveData(), impl::CConnection::x_RecordServer(), CTSE_ScopeInfo::x_RestoreAdded(), CPsiBlastApp::x_RunLocalPsiBlastIterations(), CTSE_ScopeInfo::x_SaveRemoved(), CPubseqReader::x_SendRequest(), CMemoryRegistry::x_Set(), CCompoundRWRegistry::x_Set(), CGLCanvas::x_SetupGLContext(), CRPCClient_Base::x_ShouldRetry(), CQueryParsePanel::x_StartQueryJob(), CAlnMultiDSBuilder::x_TestAlignments(), CMemoryRegistry::x_Unset(), CBDB_CacheIWriter::~CBDB_CacheIWriter(), CConnection::~CConnection(), CCursor::~CCursor(), CDataSource::~CDataSource(), CDBAPIBulkInsert::~CDBAPIBulkInsert(), CResultSet::~CResultSet(), CResultSetMetaData::~CResultSetMetaData(), CSQLITE3_Cache::~CSQLITE3_Cache(), and CStatement::~CStatement().

#define _TRACE_EX (   err_code,
  err_subcode,
  message 
)    _ALWAYS_TRACE_EX(err_code, err_subcode, message)

Definition at line 121 of file ncbidbg.hpp.

#define _TRACE_X (   err_subcode,
  message 
)    _ALWAYS_TRACE_X(err_subcode, message)

Definition at line 123 of file ncbidbg.hpp.

Referenced by CDiagContext::SetupDiag().

#define _TRACE_XX (   error_name,
  err_subcode,
  message 
)    _ALWAYS_TRACE_XX(error_name, err_subcode, message)

Definition at line 124 of file ncbidbg.hpp.

#define _TROUBLE   NCBI_TROUBLE("")

Definition at line 160 of file ncbidbg.hpp.

#define _VERIFY (   expr)    NCBI_VERIFY(expr, "")

Definition at line 159 of file ncbidbg.hpp.

Referenced by CCgiCookies::Add(), CDataSource_ScopeInfo::AddTSE_Lock(), CHttpHeaders::AddValue(), CDataSource_ScopeInfo::AttachTSE(), CAnnotObject_Ref::CAnnotObject_Ref(), CCriteriaSet_CalculateMemberships(), CLZOCompression::CompressBuffer(), CDiffText::Diff(), CDelayBuffer::DoUpdate(), CConn_FtpStream::Drain(), CSQLITE_Global::Finalize(), CSeq_id_General_Tree::FindOrCreate(), CLZOCompressor::Finish(), CCompressionStreambuf::Flush(), CCachedSynRegistryImpl::CCache::Get(), CTSE_ScopeInfo::GetBioseqLock(), CSNPScoringMethod::GetColorForNoScore(), CTestSeqBasedMethod::GetColorForNoScore(), CMatrixScoringMethod::GetColorForNoScore(), CTestSeqBasedMethod::GetColorForScore(), CScope_Impl::GetEditHandle(), GetExtensionAsInterface(), CBlockingQueue< TRequest >::GetHandle(), CDataSource::GetTSE_LoadLockIfLoaded(), CDataSource_ScopeInfo::GetTSE_Lock(), CBDB_Cache::GetWriteStream(), CSQLITE_Global::Initialize(), CMapControl::InsertItem(), CInterProcessLock::Lock(), CTraceGraph::NeedTooltip(), CRenderableImpl::NeedTooltip(), CBZip2Decompressor::Process(), CLZODecompressor::Process(), CDeleteQueue< const CTSE_ScopeInfo *, CTSE_ScopeInternalLock >::Put(), CRWLock::ReadLock(), CObjectManager::RegisterScope(), CScope_Impl::RemoveDataLoader(), CDataSource_ScopeInfo::RemoveFromHistory(), CScope_Impl::RemoveTopLevelSeqEntry(), CDataSource_ScopeInfo::RemoveTSE_Lock(), CObjectManager::RevokeScope(), s_OffsetAsString(), s_PrintUnifiedHunk(), s_SignalHandler(), CSNPScoringMethod::SetColorForNoScore(), CMatrixScoringMethod::SetColorForNoScore(), CTSE_ScopeInfo::SetEditTSE(), CHttpHeaders::SetValue(), CConn_Streambuf::showmanyc(), sx_GetLastNewPtrMultiple(), CRWLock::TryReadLock(), CRWLock::TryWriteLock(), CInterProcessLock::Unlock(), CSpinLock::Unlock(), CRWLock::Unlock(), CRWLock::WriteLock(), CConcurrentMap< Key, Value, Comparator, Allocator, CntChildsInNode, MaxTreeHeight, DeletionDelay, DelStoreCapacity >::x_CheckRootSplit(), CDiffList::x_CleanupAndMerge_SingleEdits(), CCgiEntryReaderContext::x_DelimitedRead(), CTSE_Lock::x_Drop(), CDataSource::x_DropTSE(), CInfoCache< KeyType, DataType >::x_ForgetInfo(), CId1Reader::x_GetConnection(), CStatementBase::x_GetData(), CSimpleStaticTls< V >::x_GetKeyLong(), CTSE_Info::x_IndexAnnotTSE(), CDataSource::x_IndexAnnotTSEs(), CConn_Streambuf::x_Init(), CFeatList::x_Init(), CGFFReader::x_ParseV2Attributes(), CObjectManager::x_RegisterLoader(), CDataSource::x_ReleaseLastTSELock(), CId2Reader::x_RemoveConnectionSlot(), CPubseq2Reader::x_RemoveConnectionSlot(), CId1Reader::x_RemoveConnectionSlot(), CPubseqReader::x_RemoveConnectionSlot(), CDataSource::x_ResetDirtyAnnotIndex(), CTSE_ScopeInfo::x_RestoreAdded(), CObjectManager::x_RevokeDataLoader(), CDataSource::x_SetDirtyAnnotIndex(), CDataSource::x_SetLoadLock(), CTSE_Chunk_Info::x_SplitAttach(), CSeq_id_int_Tree::x_Unindex(), CSeq_id_Local_Tree::x_Unindex(), CSeq_id_General_Tree::x_Unindex(), CTSE_Info::x_UnindexAnnotTSE(), and CTSE_ScopeInfo::~CTSE_ScopeInfo().

#define CHECKME_VALIDATE (   condition,
  error_type 
)
Value:
do { if ( !(condition) ) \
} while ( 0 )
void xncbi_CCheckMe_ReportError(ECheckMeError error)
Definition: ncbidbg.cpp:79

Definition at line 195 of file ncbidbg.hpp.

Referenced by CCheckMe< TValue >::operator TValue(), CCheckMe< TValue >::operator!=(), CCheckMe< TValue >::operator=(), CCheckMe< TValue >::operator==(), and CCheckMe< TValue >::~CCheckMe().

#define NCBI_ALWAYS_ASSERT (   expr,
  mess 
)
Value:
do { if ( !(expr) ) \
NCBI_NS_NCBI::CNcbiDiag::DiagAssert(DIAG_COMPILE_INFO, #expr, mess); \
} while ( 0 )
#define DIAG_COMPILE_INFO
Make compile time diagnostic information object to use in CNcbiDiag and CException.
Definition: ncbidiag.hpp:169

Definition at line 107 of file ncbidbg.hpp.

#define NCBI_ALWAYS_ASSERT_EXPR (   expr,
  mess 
)    ((expr)?(void)0:NCBI_NS_NCBI::CNcbiDiag::DiagAssert(DIAG_COMPILE_INFO, #expr, mess))

Definition at line 111 of file ncbidbg.hpp.

#define NCBI_ALWAYS_TROUBLE (   mess)    NCBI_NS_NCBI::CNcbiDiag::DiagTrouble(DIAG_COMPILE_INFO, mess)
#define NCBI_ALWAYS_VERIFY (   expr,
  mess 
)    NCBI_ALWAYS_ASSERT(expr, mess)

Definition at line 115 of file ncbidbg.hpp.

#define NCBI_ASSERT (   expr,
  mess 
)    NCBI_ALWAYS_ASSERT(expr, mess)
#define NCBI_ASSERT_EXPR (   expr,
  mess 
)    NCBI_ALWAYS_ASSERT_EXPR(expr, mess)

Definition at line 129 of file ncbidbg.hpp.

#define NCBI_TROUBLE (   mess)    NCBI_ALWAYS_TROUBLE(mess)
#define NCBI_VERIFY (   expr,
  mess 
)    NCBI_ALWAYS_VERIFY(expr, mess)

Definition at line 130 of file ncbidbg.hpp.

Enumeration Type Documentation

Enumerator
eCheckMe_Unused 

The value has not been checked.

eCheckMe_Unset 

Invalid op with a not set value.

Definition at line 189 of file ncbidbg.hpp.

Which action to perform.

Specify action to be performed when expression under "xncbi_Validate(expr, ...)" evaluates to FALSE.

Enumerator
eValidate_Default 

Default action.

eValidate_Abort 

abort() if not valid

eValidate_Throw 

Throw an exception if not valid.

Definition at line 171 of file ncbidbg.hpp.

Function Documentation

void xncbi_CCheckMe_ReportError ( ECheckMeError  error)

Definition at line 79 of file ncbidbg.cpp.

References eCheckMe_Unused, and NCBI_TROUBLE.

EValidateAction xncbi_GetValidateAction ( void  )

Get the action to be performed.

Definition at line 57 of file ncbidbg.cpp.

References eValidate_Abort, eValidate_Default, eValidate_Throw, and CStaticTls< TValue >::GetValue().

Referenced by CNcbiDiag::DiagValidate().

void xncbi_SetValidateAction ( EValidateAction  action)

Set the action to be performed.

Definition at line 51 of file ncbidbg.cpp.

References CStaticTls< TValue >::SetValue().

Modified on Tue Sep 19 16:18:42 2017 by modify_doxy.py rev. 546573