Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
CompilationResult.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#
pragma
once
4
5
#
include
"CoreTypes.h"
6
7
/**
8
* Enumerates possible results of a compilation operation.
9
*
10
* This enum has to be compatible with the one defined in the
11
* Engine\Source\Programs\UnrealBuildTool\System\ExternalExecution.cs file
12
* to keep communication between UHT, UBT and Editor compiling processes valid.
13
*/
14
namespace
ECompilationResult
15
{
16
enum
Type
17
{
18
/** Compilation succeeded */
19
Succeeded
= 0,
20
/** Build was canceled, this is used on the engine side only */
21
Canceled
= 1,
22
/** All targets were up to date, used only with -canskiplink */
23
UpToDate
= 2,
24
/** The process has most likely crashed. This is what UE returns in case of an assert */
25
CrashOrAssert
= 3,
26
/** Compilation failed because generated code changed which was not supported */
27
FailedDueToHeaderChange
= 4,
28
/** Compilation failed due to the engine modules needing to be rebuilt */
29
FailedDueToEngineChange
= 5,
30
/** Compilation failed due to compilation errors */
31
OtherCompilationError
= 6,
32
/** Compilation failed due to live coding limit reached */
33
LiveCodingLimitError
= 7,
34
/** Compilation is not supported in the current build */
35
Unsupported
,
36
/** Unknown error */
37
Unknown
38
};
39
40
/**
41
* Converts ECompilationResult enum to string.
42
*/
43
static
FORCEINLINE
const
TCHAR*
ToString
(
ECompilationResult
::
Type
Result)
44
{
45
switch
(Result)
46
{
47
case
ECompilationResult
::
UpToDate
:
48
return
TEXT
(
"UpToDate"
);
49
case
ECompilationResult
::
Canceled
:
50
return
TEXT
(
"Canceled"
);
51
case
ECompilationResult
::
Succeeded
:
52
return
TEXT
(
"Succeeded"
);
53
case
ECompilationResult
::
FailedDueToHeaderChange
:
54
return
TEXT
(
"FailedDueToHeaderChange"
);
55
case
ECompilationResult
::
OtherCompilationError
:
56
return
TEXT
(
"OtherCompilationError"
);
57
case
ECompilationResult
::
CrashOrAssert
:
58
return
TEXT
(
"CrashOrAssert"
);
59
case
ECompilationResult
::
LiveCodingLimitError
:
60
return
TEXT
(
"LiveCodingLimitError"
);
61
case
ECompilationResult
::
Unsupported
:
62
return
TEXT
(
"Unsupported"
);
63
};
64
return
TEXT
(
"Unknown"
);
65
}
66
67
/**
68
* Returns false if the provided Result is either UpToDate or Succeeded.
69
*/
70
static
FORCEINLINE
bool
Failed
(
ECompilationResult
::
Type
Result)
71
{
72
return
!(Result ==
ECompilationResult
::
Succeeded
|| Result ==
ECompilationResult
::
UpToDate
);
73
}
74
}
TEXT
#define TEXT(x)
Definition
Platform.h:1108
FORCEINLINE
#define FORCEINLINE
Definition
Platform.h:644
ECompilationResult
Definition
Enums.h:6005
ECompilationResult::Type
Type
Definition
Enums.h:6007
ECompilationResult::Failed
static FORCEINLINE bool Failed(ECompilationResult::Type Result)
Definition
CompilationResult.h:70
ECompilationResult::Succeeded
@ Succeeded
Definition
Enums.h:6008
ECompilationResult::CrashOrAssert
@ CrashOrAssert
Definition
Enums.h:6011
ECompilationResult::FailedDueToHeaderChange
@ FailedDueToHeaderChange
Definition
Enums.h:6012
ECompilationResult::FailedDueToEngineChange
@ FailedDueToEngineChange
Definition
Enums.h:6013
ECompilationResult::Unknown
@ Unknown
Definition
Enums.h:6017
ECompilationResult::UpToDate
@ UpToDate
Definition
Enums.h:6010
ECompilationResult::Canceled
@ Canceled
Definition
Enums.h:6009
ECompilationResult::LiveCodingLimitError
@ LiveCodingLimitError
Definition
Enums.h:6015
ECompilationResult::OtherCompilationError
@ OtherCompilationError
Definition
Enums.h:6014
ECompilationResult::Unsupported
@ Unsupported
Definition
Enums.h:6016
ECompilationResult::ToString
static FORCEINLINE const TCHAR * ToString(ECompilationResult::Type Result)
Definition
CompilationResult.h:43
Downloads
ArkServerAPI_NEW
ASA
AsaApi
AsaApi
Core
Public
API
UE
Misc
CompilationResult.h
Generated by
1.10.0