mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
0d2e7f72a7
This removes dependency on unistd.h header (required for syscall() on linux), which includes a definition of getopt(), which may conflict with a custom getopt implementation (for example, one that does work on windows).
31 lines
456 B
C++
31 lines
456 B
C++
#ifndef __TRACYSYSTEM_HPP__
|
|
#define __TRACYSYSTEM_HPP__
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "TracyApi.h"
|
|
|
|
namespace tracy
|
|
{
|
|
|
|
namespace detail
|
|
{
|
|
TRACY_API uint64_t GetThreadHandleImpl();
|
|
}
|
|
|
|
#ifdef TRACY_ENABLE
|
|
TRACY_API uint64_t GetThreadHandle();
|
|
#else
|
|
static inline uint64_t GetThreadHandle()
|
|
{
|
|
return detail::GetThreadHandleImpl();
|
|
}
|
|
#endif
|
|
|
|
TRACY_API void SetThreadName( const char* name );
|
|
TRACY_API const char* GetThreadName( uint64_t id );
|
|
|
|
}
|
|
|
|
#endif
|