UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ApplePlatformCrashContext.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3/*=============================================================================================
4 ApplePlatformCrashContext.h: Apple platform crash context declaration
5==============================================================================================*/
6
7#pragma once
8
10
15{
18
21
24
27
30 void* ErrorFrame = nullptr;
31
33 char SignalDescription[128];
34
36 char MinidumpCallstackInfo[16384];
37
39 TCHAR CallstackProperty[16384];
40
47 void InitFromSignal(int32 InSignal, siginfo_t* InInfo, void* InContext);
48
50 int32 ReportCrash(void) const;
51
53 static void CreateExceptionInfoString(int32 Signal, siginfo_t* Info);
54
56 static void ConvertMinidump(char const* OutputPath, char const* InputPath);
57
59 static void WriteLine(int ReportFile, const ANSICHAR* Line = NULL);
60
62 static void WriteUTF16String(int ReportFile, const TCHAR* UTFString4BytesChar, uint32 NumChars);
63
65 static void WriteUTF16String(int ReportFile, const TCHAR* UTFString4BytesChar);
66
68 static void WriteLine(int ReportFile, const TCHAR* Line);
69
71 static ANSICHAR* ItoANSI(uint64 Val, uint64 Base, uint32 Len = 0);
72
74 static TCHAR* ItoTCHAR(uint64 Val, uint64 Base, uint32 Len = 0);
75
76protected:
77
79 CORE_API virtual const TCHAR* GetCallstackProperty() const;
80};
#define NULL
Definition oodle2base.h:134
void CreateExceptionInfoString(int32 Signal, struct __siginfo *Info)
Definition ApplePlatformStackWalk.cpp:445
int32 ReportCrash(ucontext_t *Context, int32 Signal, struct __siginfo *Info)
Definition ApplePlatformStackWalk.cpp:484
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
FPlatformTypes::ANSICHAR ANSICHAR
An ANSI character. Normally a signed type.
Definition Platform.h:1131
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ECrashContextType
Definition GenericPlatformCrashContext.h:112
float Val(const FString &Value)
Definition UnrealMath.cpp:3163
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition ApplePlatformCrashContext.h:15
siginfo_t * Info
Definition ApplePlatformCrashContext.h:23
int32 Signal
Definition ApplePlatformCrashContext.h:20
ucontext_t * Context
Definition ApplePlatformCrashContext.h:26
Definition GenericPlatformCrashContext.h:395
virtual CORE_API const TCHAR * GetCallstackProperty() const
Definition GenericPlatformCrashContext.cpp:1125