You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
406 B
17 lines
406 B
#ifndef STRACE_XLAT_H |
|
#define STRACE_XLAT_H |
|
|
|
# include <stdint.h> |
|
|
|
struct xlat { |
|
uint64_t val; |
|
const char *str; |
|
}; |
|
|
|
# define XLAT(val) { (unsigned)(val), #val } |
|
# define XLAT_PAIR(val, str) { (unsigned)(val), str } |
|
# define XLAT_TYPE(type, val) { (type)(val), #val } |
|
# define XLAT_TYPE_PAIR(type, val, str) { (type)(val), str } |
|
# define XLAT_END { 0, 0 } |
|
|
|
#endif /* !STRACE_XLAT_H */
|
|
|