1 /* Generated by ./xlat/gen.sh from ./xlat/rtnl_neightbl_attrs.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(NDTA_UNSPEC) || (defined(HAVE_DECL_NDTA_UNSPEC) && HAVE_DECL_NDTA_UNSPEC) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((NDTA_UNSPEC) == (0), "NDTA_UNSPEC != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define NDTA_UNSPEC 0 12 #endif 13 #if defined(NDTA_NAME) || (defined(HAVE_DECL_NDTA_NAME) && HAVE_DECL_NDTA_NAME) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((NDTA_NAME) == (1), "NDTA_NAME != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define NDTA_NAME 1 19 #endif 20 #if defined(NDTA_THRESH1) || (defined(HAVE_DECL_NDTA_THRESH1) && HAVE_DECL_NDTA_THRESH1) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((NDTA_THRESH1) == (2), "NDTA_THRESH1 != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define NDTA_THRESH1 2 26 #endif 27 #if defined(NDTA_THRESH2) || (defined(HAVE_DECL_NDTA_THRESH2) && HAVE_DECL_NDTA_THRESH2) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((NDTA_THRESH2) == (3), "NDTA_THRESH2 != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define NDTA_THRESH2 3 33 #endif 34 #if defined(NDTA_THRESH3) || (defined(HAVE_DECL_NDTA_THRESH3) && HAVE_DECL_NDTA_THRESH3) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((NDTA_THRESH3) == (4), "NDTA_THRESH3 != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define NDTA_THRESH3 4 40 #endif 41 #if defined(NDTA_CONFIG) || (defined(HAVE_DECL_NDTA_CONFIG) && HAVE_DECL_NDTA_CONFIG) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((NDTA_CONFIG) == (5), "NDTA_CONFIG != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define NDTA_CONFIG 5 47 #endif 48 #if defined(NDTA_PARMS) || (defined(HAVE_DECL_NDTA_PARMS) && HAVE_DECL_NDTA_PARMS) 49 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 50 static_assert((NDTA_PARMS) == (6), "NDTA_PARMS != 6"); 51 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 52 #else 53 # define NDTA_PARMS 6 54 #endif 55 #if defined(NDTA_STATS) || (defined(HAVE_DECL_NDTA_STATS) && HAVE_DECL_NDTA_STATS) 56 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 57 static_assert((NDTA_STATS) == (7), "NDTA_STATS != 7"); 58 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 59 #else 60 # define NDTA_STATS 7 61 #endif 62 #if defined(NDTA_GC_INTERVAL) || (defined(HAVE_DECL_NDTA_GC_INTERVAL) && HAVE_DECL_NDTA_GC_INTERVAL) 63 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 64 static_assert((NDTA_GC_INTERVAL) == (8), "NDTA_GC_INTERVAL != 8"); 65 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 66 #else 67 # define NDTA_GC_INTERVAL 8 68 #endif 69 #if defined(NDTA_PAD) || (defined(HAVE_DECL_NDTA_PAD) && HAVE_DECL_NDTA_PAD) 70 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 71 static_assert((NDTA_PAD) == (9), "NDTA_PAD != 9"); 72 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 73 #else 74 # define NDTA_PAD 9 75 #endif 76 77 #ifndef XLAT_MACROS_ONLY 78 79 # ifdef IN_MPERS 80 81 # error static const struct xlat rtnl_neightbl_attrs in mpers mode 82 83 # else 84 85 static 86 const struct xlat rtnl_neightbl_attrs[] = { 87 XLAT(NDTA_UNSPEC), 88 XLAT(NDTA_NAME), 89 XLAT(NDTA_THRESH1), 90 XLAT(NDTA_THRESH2), 91 XLAT(NDTA_THRESH3), 92 XLAT(NDTA_CONFIG), 93 XLAT(NDTA_PARMS), 94 XLAT(NDTA_STATS), 95 XLAT(NDTA_GC_INTERVAL), 96 XLAT(NDTA_PAD), 97 XLAT_END 98 }; 99 100 # endif /* !IN_MPERS */ 101 102 #endif /* !XLAT_MACROS_ONLY */ 103