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

Prevent type conversions.

This commit is contained in:
Bartosz Taudul
2017-10-13 02:21:29 +02:00
parent f0484b50ca
commit cb0011755d
2 changed files with 46 additions and 2 deletions
+14 -1
View File
@@ -102,11 +102,24 @@ struct QueueLockMark
uint64_t srcloc; // ptr
};
enum class PlotDataType : uint8_t
{
Float,
Double,
Int
};
struct QueuePlotData
{
uint64_t name; // ptr
int64_t time;
double val;
PlotDataType type;
union
{
double d;
float f;
int64_t i;
} data;
};
struct QueueHeader