UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Memory.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#if defined(PLATFORM_USES_FIXED_GMalloc_CLASS) && PLATFORM_USES_FIXED_GMalloc_CLASS
6# if USE_MALLOC_BINNED2
7# include "HAL/MallocBinned2.h" // HEADER_UNIT_IGNORE - Causes circular includes
8# define FMEMORY_INLINE_GMalloc (FMallocBinned2::MallocBinned2)
9# elif USE_MALLOC_BINNED3
10# include "HAL/MallocBinned3.h" // HEADER_UNIT_IGNORE - Causes circular includes
11# define FMEMORY_INLINE_GMalloc (FMallocBinned3::MallocBinned3)
12# endif
13#endif
14
15#if !defined(FMEMORY_INLINE_GMalloc)
16# include "CoreGlobals.h"
17# define FMEMORY_INLINE_GMalloc UE::Private::GMalloc
18#endif
19
20#include "HAL/FMemory.inl"