mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Force inline Slab::AllocInit().
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T* AllocInit()
|
tracy_force_inline T* AllocInit()
|
||||||
{
|
{
|
||||||
const auto size = sizeof( T );
|
const auto size = sizeof( T );
|
||||||
assert( size <= BlockSize );
|
assert( size <= BlockSize );
|
||||||
@@ -59,7 +59,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T* AllocInit( size_t sz )
|
tracy_force_inline T* AllocInit( size_t sz )
|
||||||
{
|
{
|
||||||
const auto size = sizeof( T ) * sz;
|
const auto size = sizeof( T ) * sz;
|
||||||
assert( size <= BlockSize );
|
assert( size <= BlockSize );
|
||||||
|
|||||||
Reference in New Issue
Block a user