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

add set thread to c api

This commit is contained in:
Niclas Olmenius
2020-08-03 17:31:00 +02:00
parent 37ea159646
commit 826affb0b5
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