MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Finally.h File Reference
#include "CoreMinimal.h"

Go to the source code of this file.

Data Structures

struct  Mcro::Finally::FFinally
 
struct  Mcro::Finally::FFinallySyntaxSupport
 

Namespaces

namespace  Mcro
 
namespace  Mcro::Finally
 

Macros

#define FINALLY(...)
 

Detailed Description

Author
David Mórász
Date
2025

Definition in file Finally.h.

Macro Definition Documentation

◆ FINALLY

#define FINALLY ( ...)
Value:

A more convenient way to use FFinally.

auto fin = FINALLY(=, this) mutable
{
...
};
AsyncTask(ENamedThreads::GameThread, [fin = MoveTemp(fin)]
{
// Payload is executed at the end of this scope
}
#define FINALLY(...)
Definition Finally.h:89

Definition at line 89 of file Finally.h.