use cppcheckError to report Tokenizer/Preprocessor error instead of std::cerr

This commit is contained in:
Daniel Marjamäki 2010-07-18 12:57:29 +02:00
parent a4b887f21a
commit 020a8a965c
1 changed files with 1 additions and 1 deletions

View File

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