Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Evaluates the given condition in a debug build. If the resulting evaluation is false, then ASSERTcalls DbgAssertto handle the assertion failure. DbgAssertcan return to its caller later, if the user so desires.
ASSERT( cond );
Parameters
Remarks
If you use the ASSERT macro, DbgAssertmight display a message box. If this is not acceptable in your environment, you can use KASSERT(kernel assert) instead.
Here are two examples of ASSERTcalls:
ASSERT( First != NULL); ASSERT( StartTime <= EndTime);