mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
add a precondition
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user