mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Add shortcut for allocation of a type.
This commit is contained in:
parent
47f6c8d06b
commit
de0b50aef9
@ -39,6 +39,12 @@ public:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
T* Alloc()
|
||||||
|
{
|
||||||
|
return (T*)Alloc( sizeof( T ) );
|
||||||
|
}
|
||||||
|
|
||||||
void Unalloc( size_t size )
|
void Unalloc( size_t size )
|
||||||
{
|
{
|
||||||
assert( size <= m_offset );
|
assert( size <= m_offset );
|
||||||
|
Loading…
Reference in New Issue
Block a user