mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add assert checking that there's space.
This commit is contained in:
parent
d64f0390da
commit
dc1396012e
@ -85,6 +85,7 @@ public:
|
|||||||
|
|
||||||
void push_back_no_space_check( const T& v )
|
void push_back_no_space_check( const T& v )
|
||||||
{
|
{
|
||||||
|
assert( m_size < Capacity() );
|
||||||
m_ptr[m_size++] = v;
|
m_ptr[m_size++] = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user