mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Make sure string constants are at the same memory address.
This commit is contained in:
parent
b4f8901a8d
commit
ea9464f4f6
@ -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;
|
||||
|
||||
|
@ -11,6 +11,8 @@
|
||||
namespace tracy
|
||||
{
|
||||
|
||||
const char* PointerCheckA = "tracy";
|
||||
|
||||
void SetThreadName( std::thread& thread, const char* name )
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user