CORE: extended assert message

master
Martin Gerhardy 2022-05-17 21:34:56 +02:00
parent 6200d0a910
commit fb0fa829fb
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ public:
if (entry == nullptr) {
entry = _allocator.alloc(key, core::forward<VALUETYPE>(value));
core_assert_msg(entry != nullptr, "Failed to allocate for hash: %i", (int)hashValue);
core_assert_msg(entry != nullptr, "Failed to allocate for hash: %i (size: %i/%i)", (int)hashValue, (int)size(), (int)capacity());
if (prev == nullptr) {
_buckets[hashValue % BUCKETSIZE] = entry;
} else {