UnrealVoxta 0.1.1
 
Loading...
Searching...
No Matches
VoxtaApiResponseHandler.cpp File Reference

Macros

#define SAFE_MAP_GET(Map, Key)
 

Macro Definition Documentation

◆ SAFE_MAP_GET

#define SAFE_MAP_GET ( Map,
Key )
Value:
([&]() -> const FSignalRValue& \
{ \
const auto& _key = (Key); \
if ((Map).Contains(_key)) \
{ \
return (Map)[_key]; \
} \
UE_LOGFMT(VoxtaLog, Error, "Map missing key: {0}", *(_key)); \
static const FSignalRValue _empty = FSignalRValue(EASY_STRING("")); \
return _empty; \
}())
#define EASY_STRING(x)
Macro to make a FString from a literal without the extra overhead.
Definition VoxtaDefines.h:13
Represents a value that can be sent to or received from a SignalR hub.
Definition SignalRValue.h:34