Microsoft Windows CE 3.0  

EXECUTE_ASSERT

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 condition. In a debug build, if the resulting value is not TRUE, then the EXECUTE_ASSERTmacro will invoke DbgAssertto handle the assertion failure. DbgAssertmight return to the caller, depending on the user's actions.

EXECUTE_ASSERT(
cond
);

Parameters

cond
Condition (a Boolean expression), which is always evaluated. This contrasts with ASSERTand many other traditional assertion macros, which do not evaluate the condition in nondebug builds.

Remarks

If you use the EXECUTE_ASSERT macro in a debug build, DbgAssertmight display a message box. If this is not acceptable in your environment, you can use KASSERT(kernel assert) instead.