summaryrefslogtreecommitdiff
path: root/libbindgen/tests/headers/macro-expr-basic.h
blob: d2de7fdf491cc2bb8f71e9d3f702f794bf594491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#define FOO 1
#define BAR 4
#define BAZ (FOO + BAR)

#define MIN (1 << 63)

#define BARR (1 << 0)
#define BAZZ ((1 << 1) + BAZ)
#define I_RAN_OUT_OF_DUMB_NAMES (BARR | BAZZ)

/* I haz a comment */
#define HAZ_A_COMMENT BARR

#define HAZ_A_COMMENT_INSIDE (/* comment for real */ BARR + FOO)