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