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

Make sure string constants are at the same memory address.

This commit is contained in:
Bartosz Taudul
2017-09-10 20:02:40 +02:00
parent b4f8901a8d
commit ea9464f4f6
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -6,11 +6,15 @@
namespace tracy
{
extern const char* PointerCheckA;
const char* PointerCheckB = "tracy";
static Profiler* s_instance = nullptr;
Profiler::Profiler()
: m_shutdown( false )
{
assert( PointerCheckA == PointerCheckB );
assert( !s_instance );
s_instance = this;