Token::Match(): made message about bug more verbose.

This commit is contained in:
Slava Semushin 2009-10-03 21:35:25 +07:00
parent 9a48efec00
commit 803748a654
1 changed files with 2 additions and 1 deletions

View File

@ -393,7 +393,8 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
{
if (varid == 0)
{
std::cerr << "\n###### If you see this, there is a bug ###### Token::Match() - varid was 0" << std::endl;
std::cerr << "\n###### If you see this, there is a bug ######" << std::endl
<< "Token::Match(\"" << pattern << "\", 0)" << std::endl;
}
if (tok->varId() != varid)