/* Generated by ./xlat/gen.sh from ./xlat/evdev_prop.in; do not edit. */

#include "gcc_compat.h"
#include "static_assert.h"

#if defined(INPUT_PROP_POINTER) || (defined(HAVE_DECL_INPUT_PROP_POINTER) && HAVE_DECL_INPUT_PROP_POINTER)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((INPUT_PROP_POINTER) == (0), "INPUT_PROP_POINTER != 0");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define INPUT_PROP_POINTER 0
#endif
#if defined(INPUT_PROP_DIRECT) || (defined(HAVE_DECL_INPUT_PROP_DIRECT) && HAVE_DECL_INPUT_PROP_DIRECT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((INPUT_PROP_DIRECT) == (1), "INPUT_PROP_DIRECT != 1");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define INPUT_PROP_DIRECT 1
#endif
#if defined(INPUT_PROP_BUTTONPAD) || (defined(HAVE_DECL_INPUT_PROP_BUTTONPAD) && HAVE_DECL_INPUT_PROP_BUTTONPAD)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((INPUT_PROP_BUTTONPAD) == (2), "INPUT_PROP_BUTTONPAD != 2");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define INPUT_PROP_BUTTONPAD 2
#endif
#if defined(INPUT_PROP_SEMI_MT) || (defined(HAVE_DECL_INPUT_PROP_SEMI_MT) && HAVE_DECL_INPUT_PROP_SEMI_MT)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((INPUT_PROP_SEMI_MT) == (3), "INPUT_PROP_SEMI_MT != 3");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define INPUT_PROP_SEMI_MT 3
#endif
#if defined(INPUT_PROP_TOPBUTTONPAD) || (defined(HAVE_DECL_INPUT_PROP_TOPBUTTONPAD) && HAVE_DECL_INPUT_PROP_TOPBUTTONPAD)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((INPUT_PROP_TOPBUTTONPAD) == (4), "INPUT_PROP_TOPBUTTONPAD != 4");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define INPUT_PROP_TOPBUTTONPAD 4
#endif
#if defined(INPUT_PROP_POINTING_STICK) || (defined(HAVE_DECL_INPUT_PROP_POINTING_STICK) && HAVE_DECL_INPUT_PROP_POINTING_STICK)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((INPUT_PROP_POINTING_STICK) == (5), "INPUT_PROP_POINTING_STICK != 5");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define INPUT_PROP_POINTING_STICK 5
#endif
#if defined(INPUT_PROP_ACCELEROMETER) || (defined(HAVE_DECL_INPUT_PROP_ACCELEROMETER) && HAVE_DECL_INPUT_PROP_ACCELEROMETER)
DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
static_assert((INPUT_PROP_ACCELEROMETER) == (6), "INPUT_PROP_ACCELEROMETER != 6");
DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
#else
# define INPUT_PROP_ACCELEROMETER 6
#endif

#ifndef XLAT_MACROS_ONLY

# ifdef IN_MPERS

#  error static const struct xlat evdev_prop in mpers mode

# else

static const struct xlat_data evdev_prop_xdata[] = {
 [INPUT_PROP_POINTER] = XLAT(INPUT_PROP_POINTER),
 #define XLAT_VAL_0 ((unsigned) (INPUT_PROP_POINTER))
 #define XLAT_STR_0 STRINGIFY(INPUT_PROP_POINTER)
 [INPUT_PROP_DIRECT] = XLAT(INPUT_PROP_DIRECT),
 #define XLAT_VAL_1 ((unsigned) (INPUT_PROP_DIRECT))
 #define XLAT_STR_1 STRINGIFY(INPUT_PROP_DIRECT)
 [INPUT_PROP_BUTTONPAD] = XLAT(INPUT_PROP_BUTTONPAD),
 #define XLAT_VAL_2 ((unsigned) (INPUT_PROP_BUTTONPAD))
 #define XLAT_STR_2 STRINGIFY(INPUT_PROP_BUTTONPAD)
 [INPUT_PROP_SEMI_MT] = XLAT(INPUT_PROP_SEMI_MT),
 #define XLAT_VAL_3 ((unsigned) (INPUT_PROP_SEMI_MT))
 #define XLAT_STR_3 STRINGIFY(INPUT_PROP_SEMI_MT)
 [INPUT_PROP_TOPBUTTONPAD] = XLAT(INPUT_PROP_TOPBUTTONPAD),
 #define XLAT_VAL_4 ((unsigned) (INPUT_PROP_TOPBUTTONPAD))
 #define XLAT_STR_4 STRINGIFY(INPUT_PROP_TOPBUTTONPAD)
 [INPUT_PROP_POINTING_STICK] = XLAT(INPUT_PROP_POINTING_STICK),
 #define XLAT_VAL_5 ((unsigned) (INPUT_PROP_POINTING_STICK))
 #define XLAT_STR_5 STRINGIFY(INPUT_PROP_POINTING_STICK)
 [INPUT_PROP_ACCELEROMETER] = XLAT(INPUT_PROP_ACCELEROMETER),
 #define XLAT_VAL_6 ((unsigned) (INPUT_PROP_ACCELEROMETER))
 #define XLAT_STR_6 STRINGIFY(INPUT_PROP_ACCELEROMETER)
};
static
const struct xlat evdev_prop[1] = { {
 .data = evdev_prop_xdata,
 .size = ARRAY_SIZE(evdev_prop_xdata),
 .type = XT_INDEXED,
 .flags_mask = 0
#  ifdef XLAT_VAL_0
  | XLAT_VAL_0
#  endif
#  ifdef XLAT_VAL_1
  | XLAT_VAL_1
#  endif
#  ifdef XLAT_VAL_2
  | XLAT_VAL_2
#  endif
#  ifdef XLAT_VAL_3
  | XLAT_VAL_3
#  endif
#  ifdef XLAT_VAL_4
  | XLAT_VAL_4
#  endif
#  ifdef XLAT_VAL_5
  | XLAT_VAL_5
#  endif
#  ifdef XLAT_VAL_6
  | XLAT_VAL_6
#  endif
  ,
 .flags_strsz = 0
#  ifdef XLAT_STR_0
  + sizeof(XLAT_STR_0)
#  endif
#  ifdef XLAT_STR_1
  + sizeof(XLAT_STR_1)
#  endif
#  ifdef XLAT_STR_2
  + sizeof(XLAT_STR_2)
#  endif
#  ifdef XLAT_STR_3
  + sizeof(XLAT_STR_3)
#  endif
#  ifdef XLAT_STR_4
  + sizeof(XLAT_STR_4)
#  endif
#  ifdef XLAT_STR_5
  + sizeof(XLAT_STR_5)
#  endif
#  ifdef XLAT_STR_6
  + sizeof(XLAT_STR_6)
#  endif
  ,
} };

#  undef XLAT_STR_0
#  undef XLAT_VAL_0
#  undef XLAT_STR_1
#  undef XLAT_VAL_1
#  undef XLAT_STR_2
#  undef XLAT_VAL_2
#  undef XLAT_STR_3
#  undef XLAT_VAL_3
#  undef XLAT_STR_4
#  undef XLAT_VAL_4
#  undef XLAT_STR_5
#  undef XLAT_VAL_5
#  undef XLAT_STR_6
#  undef XLAT_VAL_6
# endif /* !IN_MPERS */

#endif /* !XLAT_MACROS_ONLY */
