Constants and conditional coding¶
Why use constants and conditional coding¶
Although the main idea of NeoMAD is to enable cross-platform applications to be created using the same single source code for all targets. It may be useful to introduce variations into the source code. This can be necessary to deal with the specific constraints of a platform, handle several types of screen or keyboard configuration, add a specific extra feature on a platform that allows it, etc. It can also be useful to produce different applications that share the same core code with some variations.
NeoMAD allows developers to solve these problems using constants and conditional coding. We will go through some samples to demonstrate the use of these features.