fix setting the default value
basically before this commit, the default value was set *before* the prefix check which means it was set on each line instead of only when the current var is being parsed (as it should)
This commit is contained in:
parent
e8f050ad18
commit
9a75404847
1 changed files with 3 additions and 2 deletions
|
@ -90,8 +90,9 @@ inline void toLower(std::string &str) {
|
||||||
CHECK_VAR(section, name, __VA_ARGS__)
|
CHECK_VAR(section, name, __VA_ARGS__)
|
||||||
|
|
||||||
#define VAR_GENERIC_D(section, name, default, ...) \
|
#define VAR_GENERIC_D(section, name, default, ...) \
|
||||||
|
VAR_GENERIC(section, name,\
|
||||||
ret section.name = default;\
|
ret section.name = default;\
|
||||||
VAR_GENERIC(section, name, __VA_ARGS__)
|
__VA_ARGS__)
|
||||||
|
|
||||||
#define VAR_UINT(section, name) \
|
#define VAR_UINT(section, name) \
|
||||||
VAR_GENERIC(section, name,\
|
VAR_GENERIC(section, name,\
|
||||||
|
|
Loading…
Reference in a new issue