Expose source callback registering through a macro.

This commit is contained in:
Bartosz Taudul 2022-08-17 16:26:03 +02:00
parent 687e901347
commit 7df4aef122
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -93,6 +93,7 @@
#define TracyMessageCS(x,y,z,w)
#define TracyMessageLCS(x,y,z)
#define TracySourceCallbackRegister(x,y)
#define TracyParameterRegister(x)
#define TracyParameterSetup(x,y,z,w)
#define TracyIsConnected false
@ -253,6 +254,7 @@
# define TracyMessageLCS( txt, color, depth ) TracyMessageLC( txt, color )
#endif
#define TracySourceCallbackRegister( cb, data ) tracy::Profiler::SourceCallbackRegister( cb, data )
#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()