Skip to content

Commit 803748a

Browse files
committed
Token::Match(): made message about bug more verbose.
1 parent 9a48efe commit 803748a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/token.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
393393
{
394394
if (varid == 0)
395395
{
396-
std::cerr << "\n###### If you see this, there is a bug ###### Token::Match() - varid was 0" << std::endl;
396+
std::cerr << "\n###### If you see this, there is a bug ######" << std::endl
397+
<< "Token::Match(\"" << pattern << "\", 0)" << std::endl;
397398
}
398399

399400
if (tok->varId() != varid)

0 commit comments

Comments
 (0)