Microsoft DirectX 8.1 (C++)

Assert and Breakpoint Macros

The Microsoft® DirectShow® base classes provide several macros that perform asserts or cause breakpoints.

Requirements

Header: Declared in Wxdebug.h; include Streams.h.

Library: Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

Macro Description
ASSERT Evaluates an expression, and displays a diagnostic message if the expression is FALSE.
DbgAssertAligned Tests whether a pointer is aligned to a specified boundary.
DbgBreak Displays a message box with the specified string, the name of the source file, and the line number.
EXECUTE_ASSERT Evaluates an expression in debug and retail builds. In debug builds, displays a diagnostic message if the expression is FALSE.
KASSERT Evaluates an expression, and causes a breakpoint exception if the expression is FALSE.
KDbgBreak Causes a breakpoint exception, and logs the specified string.