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 */
14namespace 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 */
28 /** Compilation failed due to the engine modules needing to be rebuilt */
30 /** Compilation failed due to compilation errors */
32 /** Compilation failed due to live coding limit reached */
34 /** Compilation is not supported in the current build */
36 /** Unknown error */
38 };
39
40 /**
41 * Converts ECompilationResult enum to string.
42 */
43 static FORCEINLINE const TCHAR* ToString(ECompilationResult::Type Result)
44 {
45 switch (Result)
46 {
48 return TEXT("UpToDate");
50 return TEXT("Canceled");
52 return TEXT("Succeeded");
54 return TEXT("FailedDueToHeaderChange");
56 return TEXT("OtherCompilationError");
58 return TEXT("CrashOrAssert");
60 return TEXT("LiveCodingLimitError");
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 */
71 {
72 return !(Result == ECompilationResult::Succeeded || Result == ECompilationResult::UpToDate);
73 }
74}
#define TEXT(x)
Definition Platform.h:1108
#define FORCEINLINE
Definition Platform.h:644
static FORCEINLINE bool Failed(ECompilationResult::Type Result)
static FORCEINLINE const TCHAR * ToString(ECompilationResult::Type Result)