![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "CoreTypes.h"#include "HAL/UnrealMemory.h"#include "UObject/NameTypes.h"#include "HAL/Memory.h"#include "Modules/VisualizerDebuggingState.h"Go to the source code of this file.
| #define OPERATOR_NEW_MSVC_PRAGMA |
Override new + delete operators (and array versions) in every module. This prevents the possibility of mismatched new/delete calls such as a new[] that uses Unreal's allocator and a delete[] that uses the system allocator.
Overloads have to guarantee at least 1 byte is allocated because otherwise new T[0] could return a null pointer, as could ::operator new(0), depending on the allocator (e.g. TBB), which is non-standard behaviour.
FMemory_Malloc, FMemory_Realloc and FMemory_Free have been added for thirdparty libraries that need malloc. These functions will allow for proper memory tracking.
| #define PER_MODULE_BOILERPLATE |
| #define PER_MODULE_BOILERPLATE_ANYLINK | ( | ModuleImplClass, | |
| ModuleName | |||
| ) |
| #define REPLACEMENT_OPERATOR_NEW_AND_DELETE |
| #define UE_DEFINE_FMEMORY_WRAPPERS |
| #define UE_ENABLE_VISUALIZER_HELPERS 1 |
| #define UE_VISUALIZER_USE_AND_RETAIN |
| #define UE_VISUALIZERS_HELPERS |