2019-01-27 12:41:32 +00:00
|
|
|
#ifndef __TRACYCALLSTACK_H__
|
|
|
|
#define __TRACYCALLSTACK_H__
|
|
|
|
|
2021-10-07 21:28:40 +00:00
|
|
|
#if !defined _WIN32
|
2019-11-21 01:34:42 +00:00
|
|
|
# include <sys/param.h>
|
|
|
|
#endif
|
|
|
|
|
2021-10-07 21:28:40 +00:00
|
|
|
#if defined _WIN32
|
2022-02-09 21:14:36 +00:00
|
|
|
# if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && \
|
|
|
|
!WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
|
|
|
|
# else
|
|
|
|
# define TRACY_HAS_CALLSTACK 1
|
|
|
|
# endif
|
2019-01-27 12:41:32 +00:00
|
|
|
#elif defined __ANDROID__
|
2019-05-22 12:14:30 +00:00
|
|
|
# if !defined __arm__ || __ANDROID_API__ >= 21
|
|
|
|
# define TRACY_HAS_CALLSTACK 2
|
|
|
|
# else
|
|
|
|
# define TRACY_HAS_CALLSTACK 5
|
|
|
|
# endif
|
2019-01-27 12:41:32 +00:00
|
|
|
#elif defined __linux
|
|
|
|
# if defined _GNU_SOURCE && defined __GLIBC__
|
|
|
|
# define TRACY_HAS_CALLSTACK 3
|
|
|
|
# else
|
|
|
|
# define TRACY_HAS_CALLSTACK 2
|
|
|
|
# endif
|
2019-11-21 18:50:46 +00:00
|
|
|
#elif defined __APPLE__
|
2019-02-20 15:01:41 +00:00
|
|
|
# define TRACY_HAS_CALLSTACK 4
|
2019-11-21 18:50:46 +00:00
|
|
|
#elif defined BSD
|
|
|
|
# define TRACY_HAS_CALLSTACK 6
|
2019-01-27 12:41:32 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|