1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

General solution for string pointer/index problem.

This commit is contained in:
Bartosz Taudul
2017-11-11 01:39:34 +01:00
parent fb46b3cf24
commit 947cd04e5e
3 changed files with 39 additions and 52 deletions
+12 -2
View File
@@ -8,14 +8,24 @@
namespace tracy
{
#pragma pack( 1 )
struct StringRef
{
union
{
uint64_t strptr;
uint32_t stridx;
};
bool isptr;
};
struct TextData
{
const char* userText;
uint64_t zoneName; // ptr
};
#pragma pack( 1 )
struct SourceLocation
{
uint64_t function; // ptr