Renamed MemoryLeakTracker[.hpp|.cpp] to MemoryManager[.hpp|.cpp] Added MemoryManager::GetAllocatedBlockCount() Added MemoryManager::GetAllocatedSize() Optimized MemoryManager (no longer allocates a time buffer) Former-commit-id: 0e9c720cbb48fbed7006db3bd1000ebbc22c9583
12 lines
435 B
C++
12 lines
435 B
C++
// Copyright (C) 2014 AUTHORS
|
|
// This file is part of the "Nazara Engine - Module name"
|
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
|
|
|
#include <Nazara/ModuleName/Config.hpp>
|
|
#if NAZARA_MODULENAME_MEMORYMANAGER || defined(NAZARA_DEBUG)
|
|
#include <Nazara/Core/Debug/MemoryLeakTracker.hpp>
|
|
|
|
#define delete NzMemoryManager::NextFree(__FILE__, __LINE__), delete
|
|
#define new new(__FILE__, __LINE__)
|
|
#endif
|