From d815b79db008546455b74a7039aa23ec0b16e485 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 16 Jul 2020 11:24:44 +0200 Subject: [PATCH] Add TracyIsConnected macro. --- Tracy.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tracy.hpp b/Tracy.hpp index 4cd385bf..ff0c922e 100644 --- a/Tracy.hpp +++ b/Tracy.hpp @@ -75,6 +75,7 @@ #define TracyParameterRegister(x) #define TracyParameterSetup(x,y,z,w) +#define TracyIsConnected false #else @@ -193,6 +194,7 @@ #define TracyParameterRegister( cb ) tracy::Profiler::ParameterRegister( cb ); #define TracyParameterSetup( idx, name, isBool, val ) tracy::Profiler::ParameterSetup( idx, name, isBool, val ); +#define TracyIsConnected tracy::GetProfiler().IsConnected() #endif