fix to preprocessor

This commit is contained in:
Dave White 2004-04-28 00:08:59 +00:00
parent d1ec0bff43
commit 43b9bae97e

View file

@ -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());