diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 0d8dce1aa..21f01524b 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -359,7 +359,7 @@ void Tokenizer::createTokens(std::istream &code) { if (lineNumbers.empty() || fileIndexes.empty()) { - std::cerr << "####### Preprocessor bug! #######\n"; + cppcheckError(0); deallocateTokens(); return; }