PXF_DEFAULT_STR_BIT,
};
-# define FLAG_(name_) name_ = 1 << name_##_BIT
-
enum xlat_style_private_flags {
/* print_array */
- FLAG_(PAF_PRINT_INDICES),
- FLAG_(PAF_ARRAY_TRUNCATED),
+ FLAG(PAF_PRINT_INDICES),
+ FLAG(PAF_ARRAY_TRUNCATED),
/* print_xlat */
- FLAG_(PXF_DEFAULT_STR),
+ FLAG(PXF_DEFAULT_STR),
};
-# undef FLAG_
-
/** Print a value in accordance with xlat formatting settings. */
extern void print_xlat_ex(uint64_t val, const char *str, enum xlat_style style);
# define print_xlat(val_) \
# define IS_ARRAY_ZERO(arr_) \
is_filled((const char *) (arr_), 0, sizeof(arr_) + MUST_BE_ARRAY(arr_))
+# ifndef BIT
+# define BIT(x_) (1U << (x_))
+# endif
+
+# define FLAG(name_) name_ = BIT(name_##_BIT)
+
#endif /* !STRACE_MACROS_H */