Closed HarveyHunt closed 10 years ago
1) As the config.h options will be modified by users of howm, putting static asserts in config.h seems to be the most appropriate idea.
2) Static asserts can also be added to check the things in the arrays of config.h, but since they won't be modified much by the users, using a test case mechanisms (unit tests or regression tests for arrays) seems wise here. We can have a look at cunit and other packages for testing available for C. But using static asserts should also work for this use case. This is just my opinion.
Okay, then static asserts for checking the arrays sounds good!
All done, time to merge. :+1:
Opinions on this would be useful:
_Static_assert compiles fine under both GCC and Clang, so we don't need to worry about that. :-)