Iros
 
Loading...
Searching...
No Matches
co_try.h File Reference

Go to the source code of this file.

Macros

#define DI_CO_TRY(...)
 
#define CO_TRY   DI_CO_TRY
 

Macro Definition Documentation

◆ CO_TRY

#define CO_TRY   DI_CO_TRY

◆ DI_CO_TRY

#define DI_CO_TRY ( ...)
Value:
__extension__({ \
auto __result = (__VA_ARGS__); \
if (!__result) { \
co_return di::util::move(__result).__try_did_fail(); \
} \
::di::util::move(__result).__try_did_succeed(); \
}).__try_move_out()