Keeping track of source code variants

后端 未结 6 1744
眼角桃花
眼角桃花 2021-02-06 02:03

I am soon starting to maintain a line of products containing variants of the same embedded software. Since I\'ve been playing with git for one year and appreciate it very much,

6条回答
  •  盖世英雄少女心
    2021-02-06 02:47

    I'd try to go for #defines as much as possible. With a proper code you can minimize the impact on readability and repetitions.

    But at the same time #define approach can safely be combined with splitting and branching, application of which depends on the nature of the codebase.

提交回复
热议问题