UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CoreDefines.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#ifndef STUBBED
5#define STUBBED(x) \
6 do \
7 { \
8 static bool AlreadySeenThisStubbedSection = false; \
9 if (!AlreadySeenThisStubbedSection) \
10 { \
11 AlreadySeenThisStubbedSection = true; \
12 fprintf(stderr, "STUBBED: %s at %s:%d (%s)\n", x, __FILE__, __LINE__, __FUNCTION__); \
13 } \
14 } while (0)
15#endif
16
17/*----------------------------------------------------------------------------
18Metadata macros.
19----------------------------------------------------------------------------*/
20
21#define CPP 1
22#define STRUCTCPP 1
23#define DEFAULTS 0
24
25
26/*-----------------------------------------------------------------------------
27Seek-free defines.
28-----------------------------------------------------------------------------*/
29
30#define STANDALONE_SEEKFREE_SUFFIX TEXT("_SF")
31
32
33/*-----------------------------------------------------------------------------
34Macros for enabling heap storage instead of inline storage on delegate types.
35Can be overridden by setting to 1 or 0 in the project's .Target.cs files.
36-----------------------------------------------------------------------------*/
37
38#ifndef NUM_DELEGATE_INLINE_BYTES
39 #define NUM_DELEGATE_INLINE_BYTES 0
40#endif
41
42#ifndef NUM_MULTICAST_DELEGATE_INLINE_ENTRIES
43 #define NUM_MULTICAST_DELEGATE_INLINE_ENTRIES 0
44#endif
45
46#ifndef NUM_TFUNCTION_INLINE_BYTES
47 #define NUM_TFUNCTION_INLINE_BYTES 24
48#endif
49
50#ifndef NO_CVARS
51 #define NO_CVARS 0
52#endif
53
54#ifndef UE_DEPRECATE_MUTABLE_TOBJECTPTR
55#define UE_DEPRECATE_MUTABLE_TOBJECTPTR 1
56#endif
57
58#ifndef UE_REFERENCE_COLLECTOR_REQUIRE_OBJECTPTR
59#define UE_REFERENCE_COLLECTOR_REQUIRE_OBJECTPTR 0
60#endif
61
62#if UE_REFERENCE_COLLECTOR_REQUIRE_OBJECTPTR
63#undef UE_DEPRECATE_MUTABLE_TOBJECTPTR
64#define UE_DEPRECATE_MUTABLE_TOBJECTPTR 1
65#endif