fix to preprocessor
This commit is contained in:
parent
d1ec0bff43
commit
43b9bae97e
1 changed files with 4 additions and 4 deletions
|
@ -166,15 +166,15 @@ std::vector<std::string> parse_macro_arguments(const std::string& macro)
|
|||
++begin;
|
||||
}
|
||||
|
||||
if(!in_braces) {
|
||||
res.push_back("");
|
||||
}
|
||||
|
||||
if((*i)[i->size()-1] == '}') {
|
||||
in_braces = false;
|
||||
--end;
|
||||
}
|
||||
|
||||
if(!in_braces) {
|
||||
res.push_back("");
|
||||
}
|
||||
|
||||
res.back() += " " + i->substr(begin,end-begin);
|
||||
config::strip(res.back());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue