tracy/client/TracyCallstack.h

27 lines
607 B
C
Raw Normal View History

#ifndef __TRACYCALLSTACK_H__
#define __TRACYCALLSTACK_H__
2019-11-21 01:34:42 +00:00
#if !defined _WIN32 && !defined __CYGWIN__
# include <sys/param.h>
#endif
#if defined _WIN32 || defined __CYGWIN__
# define TRACY_HAS_CALLSTACK 1
#elif defined __ANDROID__
# if !defined __arm__ || __ANDROID_API__ >= 21
# define TRACY_HAS_CALLSTACK 2
# else
# define TRACY_HAS_CALLSTACK 5
# endif
#elif defined __linux
# if defined _GNU_SOURCE && defined __GLIBC__
# define TRACY_HAS_CALLSTACK 3
# else
# define TRACY_HAS_CALLSTACK 2
# endif
2019-11-21 01:34:42 +00:00
#elif defined __APPLE__ || defined BSD
2019-02-20 15:01:41 +00:00
# define TRACY_HAS_CALLSTACK 4
#endif
#endif