error/warn IDs

This commit is contained in:
James Cherry
2020-12-13 18:21:35 -07:00
parent e0c4799a56
commit 78d29c8f90
52 changed files with 510 additions and 475 deletions

View File

@@ -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_;