DEBUGLED (Compact 2013)

3/28/2014

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

See Also

Reference

Debugging Macros
ERRORMSG
RETAILMSG