fixes
This commit is contained in:
@ -270,6 +270,15 @@
|
|||||||
|
|
||||||
#define IA_UNREACHABLE(msg) IA_RELEASE_ASSERT_MSG(FALSE, "Unreachable code: " msg)
|
#define IA_UNREACHABLE(msg) IA_RELEASE_ASSERT_MSG(FALSE, "Unreachable code: " msg)
|
||||||
|
|
||||||
|
#define IA_TRY_PURE(expr) \
|
||||||
|
{ \
|
||||||
|
auto _ia_res = (expr); \
|
||||||
|
if (!_ia_res) \
|
||||||
|
{ \
|
||||||
|
return tl::make_unexpected(std::move(_ia_res.error())); \
|
||||||
|
} \
|
||||||
|
}
|
||||||
|
|
||||||
#define IA_TRY(expr) \
|
#define IA_TRY(expr) \
|
||||||
__extension__({ \
|
__extension__({ \
|
||||||
auto _ia_res = (expr); \
|
auto _ia_res = (expr); \
|
||||||
|
|||||||
Reference in New Issue
Block a user