zworld-em/Plugins/sentry-unreal/Source/ThirdParty/Mac/include/Sentry/SentryProfilingConditionals.h

15 lines
423 B
C
Raw Permalink Normal View History

2025-05-11 22:07:21 +08:00
#ifndef SentryProfilingConditionals_h
#define SentryProfilingConditionals_h
#include <TargetConditionals.h>
// tvOS and watchOS do not support the kernel APIs required by our profiler
// e.g. mach_msg, thread_suspend, thread_resume
#if TARGET_OS_WATCH || TARGET_OS_TV
# define SENTRY_TARGET_PROFILING_SUPPORTED 0
#else
# define SENTRY_TARGET_PROFILING_SUPPORTED 1
#endif
#endif /* SentryProfilingConditionals_h */