Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
OutputDeviceError.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#include "Misc/OutputDevice.h"
7
8// Error device.
10{
11public:
12 virtual bool CanBeUsedOnPanicThread() const override
13 {
14 return true;
15 }
16
17 virtual void HandleError()=0;
18
19 /** Sets the location of the instruction that raise the next error */
20 void SetErrorProgramCounter(void* InProgramCounter)
21 {
22 ProgramCounter = InProgramCounter;
23 }
24
25 /* Returns the instruction location of where an error occurred */
27 {
28 return ProgramCounter;
29 }
30
31private:
32 void* ProgramCounter = nullptr;
33};
virtual bool CanBeUsedOnPanicThread() const override
void * GetErrorProgramCounter() const
void SetErrorProgramCounter(void *InProgramCounter)
virtual void HandleError()=0