... | ... |
@@ -22,24 +22,28 @@ |
22 | 22 |
#include "test_tools.h" |
23 | 23 |
|
24 | 24 |
using namespace lemon; |
25 | 25 |
|
26 | 26 |
#ifdef LEMON_ENABLE_ASSERTS |
27 | 27 |
#undef LEMON_ENABLE_ASSERTS |
28 | 28 |
#endif |
29 | 29 |
|
30 | 30 |
#ifdef LEMON_DISABLE_ASSERTS |
31 | 31 |
#undef LEMON_DISABLE_ASSERTS |
32 | 32 |
#endif |
33 | 33 |
|
34 |
#ifdef NDEBUG |
|
35 |
#undef NDEBUG |
|
36 |
#endif |
|
37 |
|
|
34 | 38 |
//checking disabled asserts |
35 | 39 |
#define LEMON_DISABLE_ASSERTS |
36 | 40 |
#include <lemon/assert.h> |
37 | 41 |
|
38 | 42 |
void no_assertion_text_disable() { |
39 | 43 |
LEMON_ASSERT(true, "This is a fault message"); |
40 | 44 |
} |
41 | 45 |
|
42 | 46 |
void assertion_text_disable() { |
43 | 47 |
LEMON_ASSERT(false, "This is a fault message"); |
44 | 48 |
} |
45 | 49 |
|
0 comments (0 inline)