mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 08:54:34 +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;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T* Alloc()
|
||||
{
|
||||
return (T*)Alloc( sizeof( T ) );
|
||||
}
|
||||
|
||||
void Unalloc( size_t size )
|
||||
{
|
||||
assert( size <= m_offset );
|
||||
|
Loading…
Reference in New Issue
Block a user