FDebug::EnsureFailed

Called when an 'ensure' assertion fails; gathers stack data and generates and error report.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/AssertionMacros.h

Include

#include "Misc/AssertionMacros.h"

Source

/Engine/Source/Runtime/Core/Private/Misc/AssertionMacros.cpp

Syntax

static void EnsureFailed
(
    const ANSICHAR * Expr,
    const ANSICHAR * File,
    int32 Line,
    const TCHAR * Msg,
    int NumStackFramesToIgnore
)

Remarks

Called when an 'ensure' assertion fails; gathers stack data and generates and error report.

Don't change the name of this function, it's used to detect ensures by the crash reporter.

Called when an 'ensure' assertion fails; gathers stack data and generates and error report.

Parameters

Parameter

Description

Expr

Code expression ANSI string (#code)

File

File name ANSI string (FILE)

Line

Line number (LINE)

Msg

Informative error message text

NumStackFramesToIgnore

Number of stack frames to ignore in the ensure message

Expr

Code expression ANSI string (#code)

File

File name ANSI string (FILE)

Line

Line number (LINE)

Msg

Informative error message text

NumStackFramesToIgnore

Number of stack frames to ignore in the callstack

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