Debian Codegraph @

test cases/common/132 get define/concat.h

raw
1 #define __STRINGIFY(x) #x
2 #define TEST_STRINGIFY(x) __STRINGIFY(x)
3
4 #define TEST_VERSION_MAJOR 6
5 #define TEST_VERSION_MINOR 0
6 #define TEST_VERSION_BUGFIX 0
7
8 #define TEST_VERSION_STR \
9 TEST_STRINGIFY(TEST_VERSION_MAJOR) \
10 "." TEST_STRINGIFY(TEST_VERSION_MINOR) "." TEST_STRINGIFY( \
11 TEST_VERSION_BUGFIX)
12
13 #define TEST_CONCAT_1 \
14 "ab" \
15 "cd" \
16 "ef" \
17 ""
18 #define TEST_CONCAT_2 1
19 #define TEST_CONCAT_3 1 2 3
20 #define TEST_CONCAT_4 "ab" 1 "cd"
21 #define TEST_CONCAT_5 \
22 "ab\"" \
23 "cd"
24 #define TEST_CONCAT_6 "ab\" \"cd"