#include <iosfwd>
#include <list>
#include <cstdlib>
#include <Exception/Exception.h>
Go to the source code of this file.
Classes | |
class | TraceFct |
Defines | |
#define | _tf_assert(level, ex) |
#define | TF_ASSERT_LEVEL |
This controls the level-based assertion macros. There are five levels; this macro should be assigned an integer corresponding to the maximum level for which assertions should be enabled. All assertions at levels less than or equal to this will be enabled. It is not defined by default. | |
#define | tf_assert(ex) _tf_assert(990,ex) |
if assertion is not true, generate a message and exit with an error code of 990 . | |
#define | tf_assert1(ex) _tf_assert(991,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to 1, generate a message and exit with an error code of 991 . | |
#define | tf_assert2(ex) _tf_assert(992,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to than 1, generate a message and exit with an error code of 992 . | |
#define | tf_assert3(ex) _tf_assert(993,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to than 3, generate a message and exit with an error code of 993 . | |
#define | tf_assert4(ex) _tf_assert(994,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to than 4, generate a message and exit with an error code of 994 . | |
#define | tf_assert5(ex) _tf_assert(995,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to than 5, generate a message and exit with an error code of 995 . |
The class definitions
Definition in file TraceFct.h.
#define _tf_assert | ( | level, | ||
ex | ||||
) |
do \ { \ if (!(ex)) \ TraceFct::exit( level, "Assertion failed: file\"%s\", line %d\n%s\n", \ __FILE__, __LINE__, #ex); \ } while(0)
Definition at line 42 of file TraceFct.h.
#define tf_assert | ( | ex | ) | _tf_assert(990,ex) |
if assertion is not true, generate a message and exit with an error code of 990
.
Definition at line 71 of file TraceFct.h.
#define tf_assert1 | ( | ex | ) | _tf_assert(991,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to 1, generate a message and exit with an error code of 991
.
Definition at line 82 of file TraceFct.h.
#define tf_assert2 | ( | ex | ) | _tf_assert(992,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to than 1, generate a message and exit with an error code of 992
.
Definition at line 91 of file TraceFct.h.
#define tf_assert3 | ( | ex | ) | _tf_assert(993,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to than 3, generate a message and exit with an error code of 993
.
Definition at line 100 of file TraceFct.h.
#define tf_assert4 | ( | ex | ) | _tf_assert(994,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to than 4, generate a message and exit with an error code of 994
.
Definition at line 109 of file TraceFct.h.
#define tf_assert5 | ( | ex | ) | _tf_assert(995,ex) |
if assertion is not true and TF_ASSERT_LEVEL is greater or equal to than 5, generate a message and exit with an error code of 995
.
Definition at line 119 of file TraceFct.h.
#define TF_ASSERT_LEVEL |
This controls the level-based assertion macros. There are five levels; this macro should be assigned an integer corresponding to the maximum level for which assertions should be enabled. All assertions at levels less than or equal to this will be enabled. It is not defined by default.
Definition at line 61 of file TraceFct.h.