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:
parent
3a1f068bac
commit
56d6b2af3d
|
@ -12,7 +12,7 @@
|
||||||
#error "NOT IMPLEMENTED"
|
#error "NOT IMPLEMENTED"
|
||||||
#endif
|
#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
|
namespace BAN
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue