FAssertHookDevice

Output device for replacing GError, and catching specific asserts so they don't crash the game.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtil.h

Include

#include "NUTUtil.h"

Syntax

class FAssertHookDevice : public FHookOutputDevice

Remarks

Output device for replacing GError, and catching specific asserts so they don't crash the game.

Variables

Name Description

Public variable

TArray< FString...

 

DisabledAsserts

List of disabled asserts

Constructors

Name Description

Public function

FAssertHookDevice()

Functions

Name Description

Public function Static

void

 

AddAssertHook

(
    FString Assert
)

Adds a string to the list of disabled asserts - does a partial match when watching for the disabled assert

Public function

bool

 

IsAssertDisabled

(
    const TCHAR* V
)

Overridden from FHookOutputDevice

Name Description

Public function Virtual

void

 

Serialize

(
    const TCHAR* V,
    ELogVerbosity::Type Verbosity,
    const FName& Category
)

Public function Virtual

void

 

Serialize

(
    const TCHAR* V,
    ELogVerbosity::Type Verbosity,
    const FName& Category,
    const double Time
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss