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