mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-02 01:44:34 +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 "TracyShortPtr.hpp"
|
||||||
#include "TracySlab.hpp"
|
#include "TracySlab.hpp"
|
||||||
|
|
||||||
|
//#define TRACY_VECTOR_DEBUG
|
||||||
|
|
||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -305,7 +307,11 @@ private:
|
|||||||
return 1 << m_capacity;
|
return 1 << m_capacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TRACY_VECTOR_DEBUG
|
||||||
|
T* m_ptr;
|
||||||
|
#else
|
||||||
short_ptr<T> m_ptr;
|
short_ptr<T> m_ptr;
|
||||||
|
#endif
|
||||||
uint32_t m_size;
|
uint32_t m_size;
|
||||||
uint8_t m_capacity;
|
uint8_t m_capacity;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user