mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Add vector debug macro.
Natvis is lacking in functionality, so this has to do.
This commit is contained in:
parent
946e328198
commit
8128b3894a
@ -13,6 +13,8 @@
|
||||
#include "TracyShortPtr.hpp"
|
||||
#include "TracySlab.hpp"
|
||||
|
||||
//#define TRACY_VECTOR_DEBUG
|
||||
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
@ -305,7 +307,11 @@ private:
|
||||
return 1 << m_capacity;
|
||||
}
|
||||
|
||||
#ifdef TRACY_VECTOR_DEBUG
|
||||
T* m_ptr;
|
||||
#else
|
||||
short_ptr<T> m_ptr;
|
||||
#endif
|
||||
uint32_t m_size;
|
||||
uint8_t m_capacity;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user