MCRO
C++23 utilities for Unreal Engine.
|
Go to the source code of this file.
Macros | |
#define | HR_WITH_STACKTRACE ->WithCppStackTrace() |
#define | MCRO_TRY_WITH_IMPL(tempVar, expression, noErrorInfo) |
#define | HR_TRY_WITH(expression, noErrorInfo) |
#define | HR_TRY(expression) |
#define | HR_TRY_FAST(expression) |
#define | HR_TRY_RAW(expression) |
This header provides convenience macros for dealing with API returning HRESULT
elegantly
Definition in file HResultMacros.h.
#define HR_TRY | ( | expression | ) |
Use this macro in a function which returns an Mcro::Error::TMaybe
. On non-shipping builds stacktrace is captured by default.
Definition at line 44 of file HResultMacros.h.
#define HR_TRY_FAST | ( | expression | ) |
Use this macro in a function which returns an Mcro::Error::TMaybe
. This version doesn't capture a stacktrace.
Definition at line 51 of file HResultMacros.h.
#define HR_TRY_RAW | ( | expression | ) |
Use this macro in a function which returns an Mcro::Error::TMaybe
. This version doesn't capture a stacktrace and it won't calculate human readable messages from the HRESULT the error code.
Definition at line 57 of file HResultMacros.h.
#define HR_TRY_WITH | ( | expression, | |
noErrorInfo ) |
Use this macro in a function which returns an Mcro::Error::TMaybe
.
Definition at line 37 of file HResultMacros.h.
#define HR_WITH_STACKTRACE ->WithCppStackTrace() |
Definition at line 25 of file HResultMacros.h.
#define MCRO_TRY_WITH_IMPL | ( | tempVar, | |
expression, | |||
noErrorInfo ) |
Definition at line 28 of file HResultMacros.h.