Made some syntax errors slightly easier to detect.

This commit is contained in:
Reijo Tomperi 2009-11-09 01:11:52 +02:00
parent 9de397177c
commit a5ce4fd3c3
1 changed files with 4 additions and 1 deletions

View File

@ -880,7 +880,10 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata)
{
Tokenizer tokenizer;
std::istringstream istr(s.c_str());
tokenizer.tokenize(istr, "");
if (!tokenizer.tokenize(istr, ""))
{
std::cerr << "Error parsing this:\n" << s << "\n\n";
}
const Token *tok = tokenizer.tokens();