MCRO
C++23 utilities for Unreal Engine.
|
#include "CoreMinimal.h"
#include "Mcro/Error.Fwd.h"
#include "Void.h"
#include "Mcro/Types.h"
#include "Mcro/Concepts.h"
#include "Mcro/SharedObjects.h"
#include "Mcro/Observable.Fwd.h"
#include "Mcro/LibraryIncludes/Start.h"
#include "yaml-cpp/yaml.h"
#include "Mcro/LibraryIncludes/End.h"
#include <source_location>
Go to the source code of this file.
Data Structures | |
class | Mcro::Error::IError |
class | Mcro::Error::FAssertion |
class | Mcro::Error::FUnavailable |
struct | Mcro::Error::TMaybe< T > |
Namespaces | |
namespace | Mcro |
namespace | Mcro::Error |
Macros | |
#define | ERROR_LOG(categoryName, verbosity, error) |
#define | ERROR_CLOG(condition, categoryName, verbosity, error) |
#define | ASSERT_RETURN(condition) |
#define | UNAVAILABLE() |
#define | PROPAGATE_FAIL_TV(type, var, expression) |
#define | PROPAGATE_FAIL_V(var, expression) |
#define | PROPAGATE_FAIL(expression) |
Typedefs | |
using | Mcro::Error::FCanFail = TMaybe<FVoid> |
using | Mcro::Error::FTrueOrReason = TMaybe<FVoid> |
Functions | |
FORCEINLINE FCanFail | Mcro::Error::Success () |
Definition in file Error.h.
#define ASSERT_RETURN | ( | condition | ) |
Similar to check() macro, but return an error instead of crashing
#define ERROR_CLOG | ( | condition, | |
categoryName, | |||
verbosity, | |||
error ) |
#define ERROR_LOG | ( | categoryName, | |
verbosity, | |||
error ) |
#define PROPAGATE_FAIL | ( | expression | ) |
If a function returns an FCanFail inside another function which may also return another error use this convenience macro to propagate the failure. This is only useful with expressions which doesn't return a value upon success.
#define PROPAGATE_FAIL_TV | ( | type, | |
var, | |||
expression ) |
If a function returns a TMaybe<V> inside another function which may also return another error use this convenience macro to propagate the failure. Set a target variable name to store a returned value upon success. Leave type argument empty for existing variables
#define PROPAGATE_FAIL_V | ( | var, | |
expression ) |
If a function returns a TMaybe<V> inside another function which may also return another error use this convenience macro to propagate the failure. Set a local variable to store a returned value upon success.
#define UNAVAILABLE | ( | ) |
Denote that a resource which is asked for doesn't exist