UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
EnsureScope.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
5
7
10{
12
15 CORE_API explicit FEnsureScope(const ANSICHAR* Msg);
16
21
23 {
24 return Count;
25 }
26
27private:
28 TFunction<bool(const FEnsureHandlerArgs&)> OldHandler;
29 int Count;
30};
FPlatformTypes::ANSICHAR ANSICHAR
An ANSI character. Normally a signed type.
Definition Platform.h:1131
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
const bool
Definition NetworkReplayStreaming.h:178
Definition AndroidPlatformMisc.h:14
Definition AssertionMacros.h:48
Scope that captures failed ensure calls.
Definition EnsureScope.h:10
CORE_API FEnsureScope()
Definition EnsureScope.cpp:6
int GetCount()
Definition EnsureScope.h:22
CORE_API ~FEnsureScope()
Definition EnsureScope.cpp:36
CORE_API FEnsureScope(TFunction< bool(const FEnsureHandlerArgs &)> EnsureFunc)
Captures failed ensure calls that return true from callback.