UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
EntryPoints.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
4
5#if USING_INSTRUMENTATION
6
8
9extern "C"
10{
11 INSTRUMENTATION_API void __Thunk__AnnotateHappensBefore(const char* f, int l, void* addr);
12 INSTRUMENTATION_API void __Thunk__AnnotateHappensAfter(const char* f, int l, void* addr);
21
22 #define INSTRUMENT_LOAD_FUNC(Type) \
23 INSTRUMENTATION_API Type __Thunk__Instrument_AtomicLoad_##Type(Type* Atomic, UE::Instrumentation::FAtomicMemoryOrder MemoryOrder);
24
25 #define INSTRUMENT_STORE_FUNC(Type) \
26 INSTRUMENTATION_API void __Thunk__Instrument_AtomicStore_##Type(Type* Atomic, Type Val, UE::Instrumentation::FAtomicMemoryOrder MemoryOrder);
27
28 #define INSTRUMENT_EXCHANGE_FUNC(Type) \
29 INSTRUMENTATION_API Type __Thunk__Instrument_AtomicExchange_##Type(Type* Atomic, Type Val, UE::Instrumentation::FAtomicMemoryOrder MemoryOrder);
30
31 #define INSTRUMENT_COMPARE_EXCHANGE_FUNC(Type) \
32 INSTRUMENTATION_API Type __Thunk__Instrument_AtomicCompareExchange_##Type(Type* Atomic, Type* Expected, Type Val, UE::Instrumentation::FAtomicMemoryOrder SuccessMemoryOrder, UE::Instrumentation::FAtomicMemoryOrder FailureMemoryOrder);
33
34 #define INSTRUMENT_RMW_FUNC(Func, Type) \
35 INSTRUMENTATION_API Type __Thunk__Instrument_Atomic##Func##_##Type(Type* Atomic, Type Val, UE::Instrumentation::FAtomicMemoryOrder MemoryOrder);
36
37 // Define the functions with C linkage, referenced by the compiler's instrumentation pass.
42
47
52
57
62 INSTRUMENT_RMW_FUNC(FetchSub, int8)
63 INSTRUMENT_RMW_FUNC(FetchSub, int16)
64 INSTRUMENT_RMW_FUNC(FetchSub, int32)
65 INSTRUMENT_RMW_FUNC(FetchSub, int64)
78
79 #undef INSTRUMENT_LOAD_FUNC
80 #undef INSTRUMENT_STORE_FUNC
81 #undef INSTRUMENT_EXCHANGE_FUNC
82 #undef INSTRUMENT_COMPARE_EXCHANGE_FUNC
83 #undef INSTRUMENT_RMW_FUNC
84}
85
86#endif // USING_INSTRUMENTATION
FPlatformTypes::int16 int16
A 16-bit signed integer.
Definition Platform.h:1123
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
FPlatformTypes::int64 int64
A 64-bit signed integer.
Definition Platform.h:1127
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32 Size
Definition VulkanMemory.cpp:4034
uint32_t uint32
Definition binka_ue_file_header.h:6