diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-03-26 18:40:00 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-03-26 18:40:00 +0000 |
| commit | 09b9f1dc1ec69683c3143f309e6e8a0141361624 (patch) | |
| tree | b6f1a63031e72e09d313f681a311eb3043405441 /Graphics/GraphicsEngineNextGenBase | |
| parent | Fixed latest MSVC (19.25.28610.4) build issue (diff) | |
| download | DiligentCore-09b9f1dc1ec69683c3143f309e6e8a0141361624.tar.gz DiligentCore-09b9f1dc1ec69683c3143f309e6e8a0141361624.zip | |
Renamed _DEBUG and DEVELOPMENT macros to DILGENT_DEBUG and DILIGENT_DEVELOPMENT
Diffstat (limited to 'Graphics/GraphicsEngineNextGenBase')
| -rw-r--r-- | Graphics/GraphicsEngineNextGenBase/include/DynamicHeap.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngineNextGenBase/include/DynamicHeap.hpp b/Graphics/GraphicsEngineNextGenBase/include/DynamicHeap.hpp index 906a846f..f1b4ba7b 100644 --- a/Graphics/GraphicsEngineNextGenBase/include/DynamicHeap.hpp +++ b/Graphics/GraphicsEngineNextGenBase/include/DynamicHeap.hpp @@ -105,7 +105,7 @@ public: Uint32 Size) : m_AllocationsMgr{Size, Allocator} { -#ifdef DEVELOPMENT +#ifdef DILIGENT_DEVELOPMENT m_MasterBlockCounter = 0; #endif } @@ -155,7 +155,7 @@ public: if (Mgr != nullptr) { std::lock_guard<std::mutex> Lock{Mgr->m_AllocationsMgrMtx}; -#ifdef DEVELOPMENT +#ifdef DILIGENT_DEVELOPMENT --Mgr->m_MasterBlockCounter; #endif Mgr->m_AllocationsMgr.Free(std::move(Block)); @@ -174,7 +174,7 @@ public: OffsetType GetUsedSize() const { return m_AllocationsMgr.GetUsedSize();} // clang-format on -#ifdef DEVELOPMENT +#ifdef DILIGENT_DEVELOPMENT int32_t GetMasterBlockCounter() const { return m_MasterBlockCounter; @@ -186,7 +186,7 @@ protected: { std::lock_guard<std::mutex> Lock{m_AllocationsMgrMtx}; auto NewBlock = m_AllocationsMgr.Allocate(SizeInBytes, Alignment); -#ifdef DEVELOPMENT +#ifdef DILIGENT_DEVELOPMENT if (NewBlock.IsValid()) { ++m_MasterBlockCounter; @@ -199,7 +199,7 @@ private: std::mutex m_AllocationsMgrMtx; VariableSizeAllocationsManager m_AllocationsMgr; -#ifdef DEVELOPMENT +#ifdef DILIGENT_DEVELOPMENT std::atomic_int32_t m_MasterBlockCounter; #endif }; |
