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:
parent
0ceba49d78
commit
8c8f15c420
@ -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 );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user