4.1 General Diagnostic Macros

The following list describes general diagnostic macros:

ASSERT

Prints a message if the specified expression evaluates to FALSE in the Debug version of the library, and then aborts the program.

ASSERT_VALID

Tests the internal validity of an object by calling its AssertValid member function, typically overridden from CObject.

TRACE

Provides printf-like capability in the Debug version of the library.

VERIFY

Similar to ASSERT but evaluates the expression in the Release version of the library as well as in the Debug version.