diff --git a/Tracy.hpp b/Tracy.hpp index a2551d04..1b43dd85 100644 --- a/Tracy.hpp +++ b/Tracy.hpp @@ -40,10 +40,10 @@ #include "client/TracyProfiler.hpp" #include "client/TracyScoped.hpp" -#define ZoneScoped static const tracy::SourceLocation __tracy_source_location { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ); -#define ZoneScopedN( name ) static const tracy::SourceLocation __tracy_source_location { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ); -#define ZoneScopedC( color ) static const tracy::SourceLocation __tracy_source_location { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, color }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ); -#define ZoneScopedNC( name, color ) static const tracy::SourceLocation __tracy_source_location { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, color }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ); +#define ZoneScoped static const tracy::SourceLocation __tracy_source_location ## __LINE__ { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ## __LINE__ ); +#define ZoneScopedN( name ) static const tracy::SourceLocation __tracy_source_location ## __LINE__ { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ## __LINE__ ); +#define ZoneScopedC( color ) static const tracy::SourceLocation __tracy_source_location ## __LINE__ { nullptr, __FUNCTION__, __FILE__, (uint32_t)__LINE__, color }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ## __LINE__ ); +#define ZoneScopedNC( name, color ) static const tracy::SourceLocation __tracy_source_location ## __LINE__ { name, __FUNCTION__, __FILE__, (uint32_t)__LINE__, color }; tracy::ScopedZone ___tracy_scoped_zone( &__tracy_source_location ## __LINE__ ); #define ZoneText( txt, size ) ___tracy_scoped_zone.Text( txt, size ); #define ZoneName( txt, size ) ___tracy_scoped_zone.Name( txt, size ); diff --git a/client/TracyCallstack.cpp b/client/TracyCallstack.cpp index daf5ce02..94a5afd4 100644 --- a/client/TracyCallstack.cpp +++ b/client/TracyCallstack.cpp @@ -1,4 +1,4 @@ -#include "stdio.h" +#include #include "TracyCallstack.hpp" #ifdef TRACY_HAS_CALLSTACK