Add TracyIsConnected macro.

This commit is contained in:
Bartosz Taudul 2020-07-16 11:24:44 +02:00
parent b8df7a1302
commit d815b79db0

View File

@ -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