FDebug::OptionallyLogFormattedEnsureMessageReturningFalse

Logs an error if bLog is true, and returns false.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Misc/AssertionMacros.h"

Syntax

template<typename FmtType, typename... Types>
static TEnableIf< TIsArrayOrRefOfType< FmtType, TCHAR >::Value, bool >::Type OptionallyLogFormattedEnsureMessageReturningFalse
(
    bool bLog,
    const ANSICHAR * Expr,
    const ANSICHAR * File,
    int32 Line,
    const FmtType & FormattedMsg,
    Types... Args
)

Remarks

Logs an error if bLog is true, and returns false. Takes a formatted string.

this crazy name is to ensure that the crash reporter recognizes it, which checks for functions in the callstack starting with 'EnsureNotFalse'.Failed assertion handler. Warning: May be called at library startup time.

Returns

false in all cases.

Parameters

Parameter

Description

bLog

Log if true.

Expr

Code expression ANSI string (#code)

File

File name ANSI string (FILE)

Line

Line number (LINE)

FormattedMsg

Informative error message text with variable args

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