Partager via


EXECUTE_ASSERT

 
Microsoft DirectShow 9.0

EXECUTE_ASSERT

Evaluates an expression in debug and retail builds. In debug builds, displays a diagnostic message if the expression is FALSE.

Syntax

  EXECUTE_ASSERT(
    cond
);

Parameters

cond

Expression to evaluate.

Remarks

Unlike the ASSERT macro, this macro evaluates the expression in retail builds. In debug builds, if the expression is FALSE, the macro displays a message box with the text of the expression, the name of the source file, and the line number. The user can ignore the assertion, enter the debugger, or quit the application.

Requirements

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

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

See Also