Files
UnrealEngine/Engine/Source/Runtime/AutoRTFM/Private/CallNest.h
2025-05-18 13:04:45 +08:00

33 lines
552 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#if (defined(__AUTORTFM) && __AUTORTFM)
#include "LongJump.h"
namespace AutoRTFM
{
class FContext;
class FCallNest final
{
public:
FCallNest(FContext* Context)
: Context(Context)
{}
FCallNest* Parent{ nullptr };
FContext* Context;
FLongJump AbortJump;
// Whether this succeeded or not is reflected in Context::GetStatus().
template<typename TTryFunctor>
void Try(const TTryFunctor& TryFunctor);
};
} // namespace AutoRTFM
#endif // (defined(__AUTORTFM) && __AUTORTFM)