bump simplecpp, avoid hang when there are circular inclusions

This commit is contained in:
Daniel Marjamäki 2016-07-20 22:35:45 +02:00
parent 8a1936d5c9
commit ae37eb5c06
1 changed files with 2 additions and 0 deletions

View File

@ -1220,6 +1220,8 @@ std::map<std::string, simplecpp::TokenList*> simplecpp::load(const simplecpp::To
if (!f.is_open())
continue;
ret[header2] = 0;
TokenList *tokens = new TokenList(f, fileNumbers, header2);
tokens->removeComments();
if (!tokens->cbegin())