Go to the source code of this file.
◆ STDIO_TRY
Value: __extension__({ \
auto __result = (__VA_ARGS__); \
if (!__result) { \
} \
di::util::move(__result).__try_did_succeed(); \
}).__try_move_out()
#define errno
Definition errno.h:11
constexpr auto to_underlying
Definition to_underlying.h:15
#define EOF
Definition stdio.h:23
◆ STDIO_TRY_OR_MARK_ERROR
#define STDIO_TRY_OR_MARK_ERROR |
( |
| file, |
|
|
| ... ) |
Value: __extension__({ \
auto __result = (__VA_ARGS__); \
if (!__result) { \
(file).mark_as_error(); \
} \
di::util::move(__result).__try_did_succeed(); \
}).__try_move_out()
◆ STDIO_TRY_OR_NULL
#define STDIO_TRY_OR_NULL |
( |
| ... | ) |
|
Value: __extension__({ \
auto __result = (__VA_ARGS__); \
if (!__result) { \
return nullptr; \
} \
di::util::move(__result).__try_did_succeed(); \
}).__try_move_out()