2
0
mirror of https://github.com/wolfpld/tracy synced 2026-02-09 11:42:44 +00: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

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