UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HideWindowsPlatformAtomics.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3// HEADER_UNIT_SKIP - Not included directly
4
5// #TODO: redirect to platform-agnostic version for the time being. Eventually this will become an error
6#include "HAL/Platform.h"
7#if !PLATFORM_WINDOWS
9#else
10
11#ifdef WINDOWS_PLATFORM_ATOMICS_GUARD
12 #undef WINDOWS_PLATFORM_ATOMICS_GUARD
13#else
14 #error Mismatched HideWindowsPlatformAtomics.h detected.
15#endif
16
17#undef InterlockedIncrement
18#undef InterlockedDecrement
19#undef InterlockedAdd
20#undef InterlockedExchange
21#undef InterlockedExchangeAdd
22#undef InterlockedCompareExchange
23#undef InterlockedCompareExchangePointer
24#undef InterlockedExchange64
25#undef InterlockedExchangeAdd64
26#undef InterlockedCompareExchange64
27#undef InterlockedIncrement64
28#undef InterlockedDecrement64
29#undef InterlockedAnd
30#undef InterlockedOr
31#undef InterlockedXor
32
33
34#endif //PLATFORM_*