|
#define | SERVICES_CHECKS_H |
|
#define | __DEBUG 0 |
|
#define | IFDBG(a) |
|
#define | IFNDBG(a) a |
|
#define | NDEBUG |
|
#define | VALIDPTR(p) ((p) != 0) |
|
#define | VALIDORNULLPTR(p) (!(p) || VALIDPTR(p)) |
|
#define | PRECONDITION(condition) PRECONDITIONX(condition, ::owl::TDiagException::ToString(#condition)) |
|
#define | PRECONDITIONX(condition, message) ((void)0) |
|
#define | CHECK(condition) CHECKX(condition, ::owl::TDiagException::ToString(#condition)) |
|
#define | CHECKX(condition, message) ((void)0) |
|
#define | VERIFY(condition) ((void)(condition)) |
|
#define | VERIFYX(condition, message) ((void)(condition)) |
|
#define | TRACE(message) TRACEX(Def, 0, message) |
|
#define | TRACE_FUNCTION(function) TRACE_FUNCTIONX(Def, 0, function) |
|
#define | TRACE_FUNCTIONP(function, condition) TRACE_FUNCTIONXP(Def, 0, function, condition) |
|
#define | TRACEX(group, level, message) ((void)0) |
|
#define | TRACE_FUNCTIONX(group, level, function) ((void)0) |
|
#define | TRACE_FUNCTIONXP(group, level, function, condition) ((void)0) |
|
#define | WARN(condition, message) WARNX(Def, condition, 0, message) |
|
#define | WARNX(group, condition, level, message) ((void)0) |
|
#define | TRACEX_IF(condition, group, level, message) WARNX(group, condition, level, message) |
|
#define | TRACE_IF(condition, message) WARNX(Def, condition, 0, message) |
|
#define | DIAG_ASSERT_IMPL(assertion, condition, message) |
|
#define | DIAG_TRACE_IMPL(operation, group, condition, level, message) |
|
#define | DIAG_DECLARE_GROUP(group) |
|
#define | DIAG_DECLARE_EXPORTGROUP(group) |
|
#define | DIAG_DECLARE_IMPORTTGROUP(group) |
|
#define | DIAG_DEFINE_GROUP(group, enable, level) |
|
#define | OWL_DIAG_DEFINE_GROUP(group, enable, level) |
|
#define | DIAG_DEFINE_EXPORTGROUP(group, enable, level) |
|
#define | DIAG_ENABLE(group, s) ((void)0) |
|
#define | DIAG_ISENABLED(group) ((void)0) |
|
#define | DIAG_SETLEVEL(group, level) ((void)0) |
|
#define | DIAG_GETLEVEL(group) ((void)0) |
|
#define | DIAG_REDIRECT(group, s) ((void)0) |
|
#define | IFDIAG(a) |
|
#define | IFNDIAG(a) a |
|
#define | OWL_DIAG_DEFINE_GROUP_INIT(f, g, e, l) OWL_DIAG_DEFINE_GROUP(g, ::owl::GetDiagEnabled(f,#g,e), ::owl::GetDiagLevel(f,#g,l)); |
|
#define | DIAG_DEFINE_GROUP_INIT(f, g, e, l) DIAG_DEFINE_GROUP(g, ::owl::GetDiagEnabled(f,#g,e), ::owl::GetDiagLevel(f,#g,l)); |
|
#define | OWL_DIAG_DEFINE_EXPORTGROUP_INIT(f, g, e, l) OWL_DIAG_DEFINE_EXPORTGROUP(g, ::owl::GetDiagEnabled(f,#g,e), ::owl::GetDiagLevel(f,#g,l)); |
|
#define | DIAG_DEFINE_EXPORTGROUP_INIT(f, g, e, l) DIAG_DEFINE_EXPORTGROUP(g, ::owl::GetDiagEnabled(f,#g,e), ::owl::GetDiagLevel(f,#g,l)); |
|
Diagnostic macros for assertions and tracing.
- Note
- The macros are controlled by the following switches:
__DEBUG = 0 PRECONDITION and CHECK are nops __DEBUG = 1 PRECONDITION is active __DEBUG = 2 PRECONDITION and CHECK are active __TRACE When defined enables TRACE __WARN When defined enables WARN
Definition in file checks.h.