version 1.14, 2005/11/22 02:59:06
|
version 1.15, 2005/11/22 23:26:17
|
|
|
const String& message); | const String& message); |
}; | }; |
| |
/** define PEGASUS_ASSERT assertion statement. This statement tests the |
|
condition defined by the parameters and if not True executes an |
|
|
|
<pre> |
|
throw AssertionFailureException |
|
</pre> |
|
|
|
defining the file, line and condition that was tested. |
|
*/ |
|
#ifdef NDEBUG |
|
#define PEGASUS_ASSERT(COND) |
|
#else |
|
#define PEGASUS_ASSERT(COND) \ |
|
do \ |
|
{ \ |
|
if (!(COND)) \ |
|
{ \ |
|
throw AssertionFailureException(__FILE__, __LINE__, #COND); \ |
|
} \ |
|
} while (0) |
|
#endif |
|
| |
/* Macro to Create the equivalent of an assert but without the | /* Macro to Create the equivalent of an assert but without the |
termination. This can be used as a temporary marker for asserts | termination. This can be used as a temporary marker for asserts |