BAN: TRY() now returns the error itself and not ErrorOr<>
This allows us to use TRY with different ErrorOr<> templates
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#error "NOT IMPLEMENTED"
|
||||
#endif
|
||||
|
||||
#define TRY(error) ({ auto e = error; if (e.IsError()) return e; e.Value(); })
|
||||
#define TRY(error) ({ auto e = error; if (e.IsError()) return e.GetError(); e.Value(); })
|
||||
|
||||
namespace BAN
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user