version 1.2, 2005/11/22 02:59:06
|
version 1.3, 2005/11/22 23:26:17
|
|
|
#include <cassert> | #include <cassert> |
| |
| |
|
/** define PEGASUS_ASSERT assertion statement. This statement tests the |
|
condition defined by the parameters and if not True executes an |
|
|
|
It only generates code if NDEBUG is not defined. |
|
See also the man page for assert(). |
|
|
|
NOTE: if NDEBUG is set then the assert() macro will generate no code, |
|
and hence do nothing at all. |
|
|
|
<pre> |
|
assert() |
|
</pre> |
|
|
|
defining the file, line and condition that was tested. |
|
*/ |
|
|
|
#define PEGASUS_ASSERT(COND) assert(COND) |
|
|
| |
/* define PEGASUS_DEBUG_ASSERT() assertion statement. This statement tests the | /* define PEGASUS_DEBUG_ASSERT() assertion statement. This statement tests the |
condition defined by the parameters and if not True executes an assert. | condition defined by the parameters and if not True executes an assert. |