Share via


DEBUGLED (Windows Embedded CE 6.0)

1/6/2010

This macro conditionally outputs WORD values to the LED.

Syntax

DEBUGLED (
    Condition, 
  (Parameters)
)

Parameters

  • Condition
    Input expression that determines when the parameter list is passed to WriteDebugLED.
  • Parameters
    A list of wIndex and dwPattern parameters to be passed to WriteDebugLED. Must be enclosed in parentheses.

Return Value

None.

Remarks

This macro may be used to conditionally output a debug LED pattern. The pattern is output if the Boolean input expression evaluates to TRUE.

Example

 DEBUGLED(dwCurrentNumberOfItems < dwMaxNumberOfItems,
          (3, 0x12345678));

Requirements

Header dbgapi.h
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

Debugging Macros
ERRORMSG
RETAILMSG