Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

assert.H File Reference


Detailed Description

Macros to define assertions.

This header file refers to the QGARDEBUG macro name, which is not defined in the file. Assertions are therefore compiled into a program either when providing the (preprocessor) option -DQGARDEBUG in the command line invoking the compiler, or when defining QGARDEBUG as a macro name in the source code, before the inclusion of the present header file:

...
#define QGARDEBUG // To be imperatively placed ahead of the #include below
...
...
#include <qgarlib/assert.H>
...

Assertions are used in a similar way as standard macros assert() (see standard header file assert.h).

Author:
Gérald Masini
Date:
July 4, 2001 17:07
Since:
Qgar 1.0

Definition in file assert.H.

Go to the source code of this file.

Namespaces

namespace  qgar

Functions

void qgar::__qgPrintAssert (const char *anExpr, const char *aFile, int aLine)
 Print a diagnostic message about failure of an assertion.