fix my stupidity (opposite way stream ops)

This commit is contained in:
jacekpoz 2024-04-18 20:56:18 +02:00
parent d77de45c84
commit f2f9e9211c
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -138,14 +138,14 @@ inline void toLower(std::string &str) {
std::string val = checkAndRemove(line, namePascalCased);\
std::stringstream ss(val);\
enum_type value;\
value << ss;\
ss >> value;\
)
#define VAR_ENUM_D(section, name, enum_type, default) \
VAR_GENERIC_D(section, name, enum_type::default,\
std::string val = checkAndRemove(line, namePascalCased);\
std::stringstream ss(val);\
enum_type value;\
value << ss;\
ss >> value;\
)
#define STRUCT_STREAM_OPS(name, ...)
@ -156,14 +156,14 @@ inline void toLower(std::string &str) {
std::string val = checkAndRemove(line, namePascalCased);\
std::stringstream ss(val);\
struct_type value;\
value << ss;\
ss >> value;\
)
#define VAR_STRUCT_D(section, name, struct_type, default) \
VAR_GENERIC_D(section, name, default,\
std::string val = checkAndRemove(line, namePascalCased);\
std::stringstream ss(val);\
struct_type value;\
value << ss;\
ss >> value;\
)
#define VAR_LIST(section, name, type) \