mirror of
https://github.com/The-OpenROAD-Project/OpenSTA.git
synced 2026-05-30 00:24:12 +08:00
error/warn IDs
This commit is contained in:
@@ -106,7 +106,7 @@ ObjectTable<TYPE>::makeBlock()
|
||||
TableBlock<TYPE> *block = new TableBlock<TYPE>(block_index, this);
|
||||
blocks_.push_back(block);
|
||||
if (blocks_.size() >= block_id_max)
|
||||
internalError("max object table block count exceeded.");
|
||||
criticalError(224, "max object table block count exceeded.");
|
||||
// ObjectId zero is reserved for object_id_null.
|
||||
int last = (block_index > 0) ? 0 : 1;
|
||||
for (int i = block_object_count - 1; i >= last; i--) {
|
||||
@@ -134,7 +134,7 @@ TYPE &
|
||||
ObjectTable<TYPE>::ref(ObjectId id) const
|
||||
{
|
||||
if (id == object_id_null)
|
||||
internalError("null ObjectId reference is undefined.");
|
||||
criticalError(225, "null ObjectId reference is undefined.");
|
||||
else {
|
||||
BlockIdx blk_idx = id >> idx_bits;
|
||||
ObjectIdx obj_idx = id & idx_mask_;
|
||||
|
||||
Reference in New Issue
Block a user