#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
Go to the source code of this file.
|
| #define | WG14_RESULT_NULLPTR NULL |
| |
| #define | WG14_RESULT_CONSTEXPR |
| |
| #define | WG14_RESULT_INLINE static |
| |
| #define | WG14_RESULT_TYPEOF(...) __typeof__(__VA_ARGS__) |
| |
| #define | WG14_RESULT_TYPEOF_UNQUAL(...) __typeof_unqual__(__VA_ARGS__) |
| |
| #define | WG14_RESULT_CONSTEXPR_OR_CONST const |
| |
| #define | WG14_RESULT_DEFAULT_VISIBILITY __attribute__((visibility("default"))) |
| |
| #define | WG14_RESULT_EXTERN extern |
| |
| #define | WG14_RESULT_SINGLETON |
| |
| #define | WG14_RESULT_STATIC_ASSERT_WITHIN_EXPR(pred, msg, ...) |
| |
| #define | WG14_RESULT_STDERR_PRINTF(...) fprintf(stderr, __VA_ARGS__) |
| |
| #define | WG14_RESULT_ABORTF_HAS_COMMA(...) |
| |
| #define | WG14_RESULT_ABORTF_HAS_COMMA_16__( _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, ...) _15 |
| |
| #define | WG14_RESULT_ABORTF_CAT_(X, Y) X##Y |
| |
| #define | WG14_RESULT_ABORTF_CAT(X, Y) WG14_RESULT_ABORTF_CAT_(X, Y) |
| |
| #define | WG14_RESULT_ABORTF_INVOKE0(X) WG14_RESULT_PREFIX(abortf_impl)("FATAL: " X "\n") |
| |
| #define | WG14_RESULT_ABORTF_INVOKE1(X, ...) WG14_RESULT_PREFIX(abortf_impl)("FATAL: " X "\n", __VA_ARGS__) |
| |
| #define | WG14_RESULT_ABORTF(...) |
| |
◆ WG14_RESULT_ABORTF
| #define WG14_RESULT_ABORTF |
( |
|
... | ) |
|
Value:
(__VA_ARGS__)
#define WG14_RESULT_ABORTF_CAT(X, Y)
#define WG14_RESULT_ABORTF_HAS_COMMA(...)
Definition at line 179 of file config.h.
◆ WG14_RESULT_ABORTF_CAT
◆ WG14_RESULT_ABORTF_CAT_
| #define WG14_RESULT_ABORTF_CAT_ |
( |
|
X, |
|
|
|
Y |
|
) |
| X##Y |
◆ WG14_RESULT_ABORTF_HAS_COMMA
| #define WG14_RESULT_ABORTF_HAS_COMMA |
( |
|
... | ) |
|
Value: WG14_RESULT_ABORTF_HAS_COMMA_16__(__VA_ARGS__, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, \
1, 1, 1, 1, 0, 0)
#define WG14_RESULT_ABORTF_HAS_COMMA_16__( _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15,...)
Definition at line 166 of file config.h.
◆ WG14_RESULT_ABORTF_HAS_COMMA_16__
| #define WG14_RESULT_ABORTF_HAS_COMMA_16__ |
( |
|
_0, |
|
|
|
_1, |
|
|
|
_2, |
|
|
|
_3, |
|
|
|
_4, |
|
|
|
_5, |
|
|
|
_6, |
|
|
|
_7, |
|
|
|
_8, |
|
|
|
_9, |
|
|
|
_10, |
|
|
|
_11, |
|
|
|
_12, |
|
|
|
_13, |
|
|
|
_14, |
|
|
|
_15, |
|
|
|
... |
|
) |
| _15 |
◆ WG14_RESULT_ABORTF_INVOKE0
| #define WG14_RESULT_ABORTF_INVOKE0 |
( |
|
X | ) |
WG14_RESULT_PREFIX(abortf_impl)("FATAL: " X "\n") |
◆ WG14_RESULT_ABORTF_INVOKE1
| #define WG14_RESULT_ABORTF_INVOKE1 |
( |
|
X, |
|
|
|
... |
|
) |
| WG14_RESULT_PREFIX(abortf_impl)("FATAL: " X "\n", __VA_ARGS__) |
◆ WG14_RESULT_CONSTEXPR
| #define WG14_RESULT_CONSTEXPR |
◆ WG14_RESULT_CONSTEXPR_OR_CONST
| #define WG14_RESULT_CONSTEXPR_OR_CONST const |
◆ WG14_RESULT_DEFAULT_VISIBILITY
| #define WG14_RESULT_DEFAULT_VISIBILITY __attribute__((visibility("default"))) |
◆ WG14_RESULT_EXTERN
| #define WG14_RESULT_EXTERN extern |
◆ WG14_RESULT_INLINE
| #define WG14_RESULT_INLINE static |
◆ WG14_RESULT_NULLPTR
| #define WG14_RESULT_NULLPTR NULL |
◆ WG14_RESULT_SINGLETON
| #define WG14_RESULT_SINGLETON |
◆ WG14_RESULT_STATIC_ASSERT_WITHIN_EXPR
| #define WG14_RESULT_STATIC_ASSERT_WITHIN_EXPR |
( |
|
pred, |
|
|
|
msg, |
|
|
|
... |
|
) |
| |
Value: ((__VA_ARGS__) + 0 * sizeof(struct { \
_Static_assert((pred), msg); \
int x; \
}))
Definition at line 126 of file config.h.
◆ WG14_RESULT_STDERR_PRINTF
| #define WG14_RESULT_STDERR_PRINTF |
( |
|
... | ) |
fprintf(stderr, __VA_ARGS__) |
◆ WG14_RESULT_TYPEOF
| #define WG14_RESULT_TYPEOF |
( |
|
... | ) |
__typeof__(__VA_ARGS__) |
◆ WG14_RESULT_TYPEOF_UNQUAL
| #define WG14_RESULT_TYPEOF_UNQUAL |
( |
|
... | ) |
__typeof_unqual__(__VA_ARGS__) |
◆ abort()
◆ va_end()
◆ va_start()
| static unsigned va_start |
( |
args |
, |
|
|
msg |
|
|
) |
| |
◆ vfprintf()
| vfprintf |
( |
stderr |
, |
|
|
msg |
, |
|
|
args |
|
|
) |
| |