Conditional compare using C #define

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mschmelz
    New User
    • Jul 2017
    • 1

    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)
  • Aaron
    Team Scooter
    • Oct 2007
    • 16000

    #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...