mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-24 19:24:47 +00:00
Use language neutral header for callstack capability detection.
This fixes call stack collection in C API when TRACY_CALLSTACK is defined.
This commit is contained in:
16
client/TracyCallstack.h
Normal file
16
client/TracyCallstack.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef __TRACYCALLSTACK_H__
|
||||
#define __TRACYCALLSTACK_H__
|
||||
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
# define TRACY_HAS_CALLSTACK 1
|
||||
#elif defined __ANDROID__
|
||||
# define TRACY_HAS_CALLSTACK 2
|
||||
#elif defined __linux
|
||||
# if defined _GNU_SOURCE && defined __GLIBC__
|
||||
# define TRACY_HAS_CALLSTACK 3
|
||||
# else
|
||||
# define TRACY_HAS_CALLSTACK 2
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user