I have a lot of compilation flags that configure my program for different customers.
For instance: MODE_A_1, MODE_A_2, MODE_B_1, ... MODE_AB_54, ...
I would really like some preprocessor trick that would allow me to to such pseudo code:
#ifdef MODE_A_.*
Instead of having to type every MODE_A_.. occurrences:
#if defined(MODE_A_1) && defined(MODE_A_2) && ...
It would be even cooler if regexes could be applied.