diff --git a/Foundation/include/Poco/HashTable.h b/Foundation/include/Poco/HashTable.h index f21cd0f78..350780b26 100644 --- a/Foundation/include/Poco/HashTable.h +++ b/Foundation/include/Poco/HashTable.h @@ -327,7 +327,7 @@ public: UInt32 numZeroEntries = 0; UInt32 maxEntriesPerHash = 0; std::vector detailedEntriesPerHash; - #ifdef DEBUG + #ifdef _DEBUG UInt32 totalSize = 0; #endif for (UInt32 i = 0; i < _maxCapacity; ++i) @@ -340,7 +340,7 @@ public: maxEntriesPerHash = size; if (details) detailedEntriesPerHash.push_back(size); - #ifdef DEBUG + #ifdef _DEBUG totalSize += size; #endif } @@ -351,7 +351,7 @@ public: detailedEntriesPerHash.push_back(0); } } - #ifdef DEBUG + #ifdef _DEBUG poco_assert_dbg(totalSize == numberOfEntries); #endif return HashStatistic(_maxCapacity, numberOfEntries, numZeroEntries, maxEntriesPerHash, detailedEntriesPerHash); diff --git a/Foundation/include/Poco/SimpleHashTable.h b/Foundation/include/Poco/SimpleHashTable.h index b54f6186d..f04cb5ac8 100644 --- a/Foundation/include/Poco/SimpleHashTable.h +++ b/Foundation/include/Poco/SimpleHashTable.h @@ -369,7 +369,7 @@ public: UInt32 size = 1; if (details) detailedEntriesPerHash.push_back(size); - #ifdef DEBUG + #ifdef _DEBUG totalSize += size; #endif } @@ -380,8 +380,9 @@ public: detailedEntriesPerHash.push_back(0); } } + #ifdef _DEBUG poco_assert_dbg(totalSize == numberOfEntries); - + #endif return HashStatistic(_capacity, numberOfEntries, numZeroEntries, maxEntriesPerHash, detailedEntriesPerHash); }