mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
TracyCSetThreadName() should be always available.
This commit is contained in:
parent
c4cf690e39
commit
73981d4ef3
9
TracyC.h
9
TracyC.h
@ -11,6 +11,11 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
TRACY_API void ___tracy_set_thread_name( const char* name );
|
||||||
|
|
||||||
|
#define TracyCSetThreadName( name ) ___tracy_set_thread_name( name );
|
||||||
|
|
||||||
|
|
||||||
#ifndef TRACY_ENABLE
|
#ifndef TRACY_ENABLE
|
||||||
|
|
||||||
typedef const void* TracyCZoneCtx;
|
typedef const void* TracyCZoneCtx;
|
||||||
@ -168,10 +173,6 @@ TRACY_API void ___tracy_emit_message_appinfo( const char* txt, size_t size );
|
|||||||
#define TracyCPlot( name, val ) ___tracy_emit_plot( name, val );
|
#define TracyCPlot( name, val ) ___tracy_emit_plot( name, val );
|
||||||
#define TracyCAppInfo( txt, color ) ___tracy_emit_message_appinfo( txt, color );
|
#define TracyCAppInfo( txt, color ) ___tracy_emit_message_appinfo( txt, color );
|
||||||
|
|
||||||
TRACY_API void ___tracy_set_thread_name( const char* name );
|
|
||||||
|
|
||||||
#define TracyCSetThreadName( name ) ___tracy_set_thread_name( name );
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef TRACY_HAS_CALLSTACK
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
# define TracyCZoneS( ctx, depth, active ) static const struct ___tracy_source_location_data TracyConcat(__tracy_source_location,__LINE__) = { NULL, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; TracyCZoneCtx ctx = ___tracy_emit_zone_begin_callstack( &TracyConcat(__tracy_source_location,__LINE__), depth, active );
|
# define TracyCZoneS( ctx, depth, active ) static const struct ___tracy_source_location_data TracyConcat(__tracy_source_location,__LINE__) = { NULL, __FUNCTION__, __FILE__, (uint32_t)__LINE__, 0 }; TracyCZoneCtx ctx = ___tracy_emit_zone_begin_callstack( &TracyConcat(__tracy_source_location,__LINE__), depth, active );
|
||||||
|
Loading…
Reference in New Issue
Block a user