1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Merge pull request #83 from voysys/add-set-thread-name-to-c-api

Add set thread name to C API
This commit is contained in:
Bartosz Taudul
2020-08-04 11:54:56 +02:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
+10
View File
@@ -237,3 +237,13 @@ TRACY_API const char* GetThreadName( uint64_t id )
}
}
#ifdef __cplusplus
extern "C" {
#endif
TRACY_API void ___tracy_set_thread_name( const char* name ) { tracy::SetThreadName( name ); }
#ifdef __cplusplus
}
#endif