fix the default value for enums (we're so back)

This commit is contained in:
jacekpoz 2024-04-18 17:10:15 +02:00
parent 559e0a27ca
commit c959fe1c31
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -148,7 +148,7 @@ inline void toLower(std::string &str) {
value << ss;\
)
#define VAR_ENUM_D(section, name, enum_type, default) \
VAR_GENERIC_D(section, name, default,\
VAR_GENERIC_D(section, name, enum_type::default,\
std::string val = checkAndRemove(line, namePascalCased);\
std::stringstream ss(val);\
enum_type value;\