![]() |
OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Diagnostic macros for assertions and tracing. More...
#include <owl/private/defs.h>
#include <owl/exbase.h>
#include <owl/private/except.h>
#include <owl/private/strmdefs.h>
#include <owl/preclass.h>
#include <owl/posclass.h>
Go to the source code of this file.
Classes | |
struct | owl::TDiagBaseHook |
class | owl::TDiagBase |
class | owl::TDiagFunction |
class | owl::TDiagException |
class | owl::TPreconditionFailure |
class | owl::TCheckFailure |
Namespaces | |
namespace | owl |
Object Windows Library (OWLNext Core) | |
Typedefs | |
typedef tostringstream | owl::diag_stream |
typedef tstring | owl::diag_string |
Functions | |
bool | owl::GetDiagEnabled (LPCSTR filename, LPCSTR diagGroup, bool defEnabled) |
Retrieves a diagnostic group's enabled flag from a private ini-file. | |
int | owl::GetDiagLevel (LPCSTR filename, LPCSTR diagGroup, int defLevel) |
Retrieves a diagnostic group's level setting from a private ini-file. | |
Diagnostic macros for assertions and tracing.
__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.
#define DIAG_DEFINE_EXPORTGROUP_INIT | ( | f, | |
g, | |||
e, | |||
l ) DIAG_DEFINE_EXPORTGROUP(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 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 PRECONDITION | ( | condition | ) | PRECONDITIONX(condition, ::owl::TDiagException::ToString(#condition)) |
#define TRACE_FUNCTION | ( | function | ) | TRACE_FUNCTIONX(Def, 0, function) |