Core/MemoryPool: Fix incorrect inlines
This commit is contained in:
@@ -22,12 +22,14 @@ namespace Nz
|
|||||||
~MemoryPool() = default;
|
~MemoryPool() = default;
|
||||||
|
|
||||||
void* Allocate(unsigned int size);
|
void* Allocate(unsigned int size);
|
||||||
|
|
||||||
template<typename T> void Delete(T* ptr);
|
template<typename T> void Delete(T* ptr);
|
||||||
|
|
||||||
void Free(void* ptr);
|
void Free(void* ptr);
|
||||||
|
|
||||||
unsigned int GetBlockSize() const;
|
inline unsigned int GetBlockSize() const;
|
||||||
unsigned int GetFreeBlocks() const;
|
inline unsigned int GetFreeBlocks() const;
|
||||||
unsigned int GetSize() const;
|
inline unsigned int GetSize() const;
|
||||||
|
|
||||||
template<typename T, typename... Args> T* New(Args&&... args);
|
template<typename T, typename... Args> T* New(Args&&... args);
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
// This file is part of the "Nazara Engine - Core module"
|
// This file is part of the "Nazara Engine - Core module"
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
|
#include <Nazara/Core/MemoryPool.hpp>
|
||||||
#include <Nazara/Core/MemoryHelper.hpp>
|
#include <Nazara/Core/MemoryHelper.hpp>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
@@ -95,9 +96,8 @@ namespace Nz
|
|||||||
*
|
*
|
||||||
* \remark If ptr is null, nothing is done
|
* \remark If ptr is null, nothing is done
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline void MemoryPool::Delete(T* ptr)
|
void MemoryPool::Delete(T* ptr)
|
||||||
{
|
{
|
||||||
if (ptr)
|
if (ptr)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user