|
1 | 1 | #ifndef RFL_INTERNAL_ENUMS_CPP20_GET_ENUM_NAMES_HPP_ |
2 | 2 | #define RFL_INTERNAL_ENUMS_CPP20_GET_ENUM_NAMES_HPP_ |
3 | 3 |
|
4 | | -// Enum values must be greater than or equal to RFL_ENUM_RANGE_MIN. |
5 | | -// By default, RFL_ENUM_RANGE_MIN is set to -256. |
6 | | -// To change the default minimum range for all enum types, redefine the macro |
7 | | -// RFL_ENUM_RANGE_MIN. |
8 | | -#if !defined(RFL_ENUM_RANGE_MIN) |
9 | | -#define RFL_ENUM_RANGE_MIN -256 |
10 | | -#endif |
11 | | - |
12 | | -// Enum values must be less than or equal to RFL_ENUM_RANGE_MAX. |
13 | | -// By default, RFL_ENUM_RANGE_MAX is set to 256. |
14 | | -// To change the default maximum range for all enum types, redefine the macro |
15 | | -// RFL_ENUM_RANGE_MAX. |
16 | | -#if !defined(RFL_ENUM_RANGE_MAX) |
17 | | -#define RFL_ENUM_RANGE_MAX 256 |
18 | | -#endif |
19 | | - |
20 | | -#ifdef ENCHANTUM_MIN_RANGE |
21 | | -#undef ENCHANTUM_MIN_RANGE |
22 | | -#endif |
23 | | -#define ENCHANTUM_MIN_RANGE RFL_ENUM_RANGE_MIN |
24 | | - |
25 | | -#ifdef ENCHANTUM_MAX_RANGE |
26 | | -#undef ENCHANTUM_MAX_RANGE |
27 | | -#endif |
28 | | -#define ENCHANTUM_MAX_RANGE RFL_ENUM_RANGE_MAX |
29 | | - |
30 | 4 | #include <concepts> |
31 | 5 | #include <utility> |
32 | 6 |
|
33 | 7 | #include "../../../Literal.hpp" |
34 | | -#include "../../../thirdparty/enchantum/enchantum.hpp" // NOLINT(unused-includes) |
35 | 8 | #include "../Names.hpp" |
36 | 9 | #include "../is_flag_enum.hpp" |
| 10 | +#include "enchantum.hpp" |
37 | 11 | #include "range_defined.hpp" |
38 | 12 |
|
39 | 13 | // https://en.cppreference.com/w/cpp/language/static_cast: |
|
0 commit comments