forked from organicmaps/organicmaps-tmp
[generator] Add more logging to CHECKs.
This commit is contained in:
parent
874d8aeb90
commit
80da0c28a9
2 changed files with 9 additions and 7 deletions
|
@ -33,5 +33,12 @@ void IndexAndTypeMapping::Add(uint32_t ind, uint32_t type)
|
|||
ASSERT_EQUAL ( ind, m_types.size(), () );
|
||||
m_types.push_back(type);
|
||||
|
||||
VERIFY ( m_map.insert(make_pair(type, ind)).second, (classif().GetFullObjectName(type), ind) );
|
||||
CHECK ( m_map.insert(make_pair(type, ind)).second, (classif().GetFullObjectName(type), ind) );
|
||||
}
|
||||
|
||||
uint32_t IndexAndTypeMapping::GetIndex(uint32_t t) const
|
||||
{
|
||||
MapT::const_iterator i = m_map.find(t);
|
||||
CHECK ( i != m_map.end(), (t, classif().GetFullObjectName(t)) );
|
||||
return i->second;
|
||||
}
|
||||
|
|
|
@ -24,10 +24,5 @@ public:
|
|||
return m_types[ind];
|
||||
}
|
||||
|
||||
uint32_t GetIndex(uint32_t t) const
|
||||
{
|
||||
MapT::const_iterator i = m_map.find(t);
|
||||
ASSERT ( i != m_map.end(), () );
|
||||
return i->second;
|
||||
}
|
||||
uint32_t GetIndex(uint32_t t) const;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue