include/corelib/ncbidbg.hpp File Reference


Detailed Description

NCBI C++ auxiliary debug macros.

NOTE:These macros are NOT for use in test applications!!! Test applications must use normal assert() and must include <common/test_assert.h> as a last header file. [test apps in 'connect' branch include "test/test_assert.h" instead]

Definition in file ncbidbg.hpp.

#include <corelib/ncbidiag.hpp>

Include dependency graph for ncbidbg.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define _TRACE(message)
 Define macros to support debugging.
#define _TRACE_EX(err_code, err_subcode, message)
#define _TRACE_X(err_subcode, message)   _TRACE_XX(NCBI_USE_ERRCODE_X, err_subcode, message)
#define _TRACE_XX(error_name, err_subcode, message)
#define NCBI_TROUBLE(mess)   NCBI_NS_NCBI::CNcbiDiag::DiagTrouble(DIAG_COMPILE_INFO, mess)
#define NCBI_ASSERT(expr, mess)
#define NCBI_VERIFY(expr, mess)   NCBI_ASSERT(expr, mess)
#define _DEBUG_ARG(arg)   arg
#define _DEBUG_CODE(code)   do { code } while ( 0 )
#define _ASSERT(expr)   NCBI_ASSERT(expr, NULL)
#define _VERIFY(expr)   NCBI_VERIFY(expr, NULL)
#define _TROUBLE   NCBI_TROUBLE(NULL)

Enumerations

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

Functions

void xncbi_SetValidateAction (EValidateAction action)
 Set the action to be performed.
EValidateAction xncbi_GetValidateAction (void)
 Get the action to be performed.


Generated on Sun Dec 6 23:28:17 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:21:19 2009 by modify_doxy.py rev. 173732