add a precondition

This commit is contained in:
Greg Landrum
2008-04-16 15:53:48 +00:00
parent 1036921809
commit 4ea3b4430f

View File

@@ -58,6 +58,7 @@ bool QueryAtom::Match(const Atom::ATOM_SPTR what) const {
}
bool QueryAtom::Match(Atom const *what) const {
PRECONDITION(what,"bad query atom");
PRECONDITION(dp_query,"no query set");
return dp_query->Match(what);
}