Announcement

Collapse
No announcement yet.

Conditional compare using C #define

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conditional compare using C #define

    I write embedded C Source for a handful of variants of a device.
    The code parts that vary for each variant are activated using #define,
    eg.
    #define DEVICE_VARIANT1
    ...
    #ifdef DEVICE_VARIANT1
    ... do something
    #endif

    Beyond Compare does an awesome tagging of differences in C-Source.
    Is there a way maybe to only list differences within valid #defines ?
    (e.g. marking all else as non-source differences)

  • #2
    Hello,

    Not directly, no. The File Format is for a specific format, which defines entire grammars. We don't have a method to limit to specific sections of an entire file.

    If you select a section, select to Copy it, and then select a second section, and right-click Compare to Clipboard, this can compare just two sections of text in a new tab.
    Aaron P Scooter Software

    Comment

    Working...
    X