Compiler Conditional Directives

Hi,

I have a number of Apps which were developed 5 years ago, and reached the CIQ 64kb limit.  More modern devices have a higher limit, and I would like to extend the Apps with the additional features in the memory.  However I don't want to cut-out the original devices and users.   

I could duplicate the App, however the nice option would be to have some Compiler Conditional Directives for modern devices, so the code is shared (for later bug fixes etc).

Can this be done? Or have others worked out a method to share code across device versions?

Cheers

Chris

  • Look at Jungles in the Programmer's guide.

  • I do it for one of mine.

    As per Jim, I use monkey.jungle with excludeAnnotations to manage the source - anything solely CIQ1 is annotated with ciq1 and anything solely for ciq2plus is annotated with ciq2plus. Anything for both is left without an annotation.

    I then had to allow for differences in settings / properties files as the older devices cannot use Storage where the newer ones do. I did this with extending the resourcePath for ciq1 so as to append the additional required definitions just for those.