As a way - using external constant variables.
For example:
file1.h (where you will use the definitions)
extern const int MY_DEF; #if (MY_DEF == 1)
file2.h (where you define the definitions)
const int MY_DEF = 1
Pro and Con:
(+): you can use some values ββto determine
(-): ALL definitions must be defined
user3570562
source share