Token: assert that multicompare patterns don't begin with some %% command

This commit is contained in:
Daniel Marjamäki 2011-11-05 19:59:48 +01:00
parent 5edf153602
commit 2f32965bdf
1 changed files with 3 additions and 0 deletions

View File

@ -603,6 +603,9 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
return false;
}
// debugging: assert that this is not part of a multicompare pattern..
assert(*p != '|');
tok = tok->next();
continue;
}