Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2017

    Default 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,
    #define DEVICE_VARIANT1
    #ifdef DEVICE_VARIANT1
    ... do something

    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. #2
    Join Date
    Oct 2007
    Madison, WI



    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts