Fixed #1843 (Tokenizer::createTokens() calls std::exit(0))

This commit is contained in:
Daniel Marjamäki 2010-07-18 12:44:55 +02:00
parent 50b41a25de
commit a4b887f21a
1 changed files with 2 additions and 1 deletions

View File

@ -360,7 +360,8 @@ void Tokenizer::createTokens(std::istream &code)
if (lineNumbers.empty() || fileIndexes.empty()) if (lineNumbers.empty() || fileIndexes.empty())
{ {
std::cerr << "####### Preprocessor bug! #######\n"; std::cerr << "####### Preprocessor bug! #######\n";
std::exit(0); deallocateTokens();
return;
} }
lineno = lineNumbers.back(); lineno = lineNumbers.back();