Alternatives/Tools for #define hell C/C++
In our C/C++ Project we use a configuration header (~1000 lines) that is
full of #ifdef's and #defines
#if (defined(HW_1) || defined(SOME_TECHNOLOGY_SUPPORTED)) &&
defined(OTHER_TECHNOLOGY_SUPPORTED)
#define SOME_FEATURE_AVAILABLE
No comments:
Post a Comment