1 /* Generated by ./xlat/gen.sh from ./xlat/sock_tls_options.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(TLS_TX) || (defined(HAVE_DECL_TLS_TX) && HAVE_DECL_TLS_TX)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((TLS_TX) == (1), "TLS_TX != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define TLS_TX 1
12 #endif
13 #if defined(TLS_RX) || (defined(HAVE_DECL_TLS_RX) && HAVE_DECL_TLS_RX)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((TLS_RX) == (2), "TLS_RX != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define TLS_RX 2
19 #endif
20 
21 #ifndef XLAT_MACROS_ONLY
22 
23 # ifdef IN_MPERS
24 
25 #  error static const struct xlat sock_tls_options in mpers mode
26 
27 # else
28 
29 static
30 const struct xlat sock_tls_options[] = {
31  XLAT(TLS_TX),
32  XLAT(TLS_RX),
33  XLAT_END
34 };
35 
36 # endif /* !IN_MPERS */
37 
38 #endif /* !XLAT_MACROS_ONLY */
39