mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 02:15:19 +00:00

This commit also gives the smart enums in src/make_enum.hpp introspective capabilities, by giving them a static const size_t which tells how many possible values they may take (hence the range of the enum.) It was convenient for the dialog implementation to have this. Note that, I had to make use of __attribute__((unused)) to compile this. I apply this using a macro which adds it for gcc, clang, and mingw which I know respond to this attribute. I don't know what is the equivalent MSVC device, or if it is even necessary, so its possible that this commit needs to be fixed up. We also disable unit tests for the new advanced graphics dialog, there are no tests for it right now...