ZK_Framework/HybridCLRData/LocalIl2CppData-WindowsEditor/il2cpp/libil2cpp/il2cpp-sanitizers.h

14 lines
311 B
C
Raw Normal View History

2024-07-04 20:18:43 +08:00
#pragma once
// Use this attribute to disable the thread sanitizer checks for a specific method.
#if defined(__has_feature)
#if __has_feature(thread_sanitizer)
#define IL2CPP_DISABLE_TSAN __attribute__((no_sanitize("thread")))
#else
#define IL2CPP_DISABLE_TSAN
#endif
#else
#define IL2CPP_DISABLE_TSAN
#endif