Token::Match(): made message about bug more verbose.
This commit is contained in:
parent
9a48efec00
commit
803748a654
|
@ -393,7 +393,8 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
|
||||||
{
|
{
|
||||||
if (varid == 0)
|
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)
|
if (tok->varId() != varid)
|
||||||
|
|
Loading…
Reference in New Issue