equal
deleted
inserted
replaced
9 # endif |
9 # endif |
10 |
10 |
11 # ifndef YS_DEF |
11 # ifndef YS_DEF |
12 /* |
12 /* |
13 * if YS_DEF is not defined, we will only do following declaration: |
13 * if YS_DEF is not defined, we will only do following declaration: |
14 * typedef struct YapfSettings { |
14 * struct YapfSettings { |
15 * bool disable_node_optimization; |
15 * bool disable_node_optimization; |
16 * uint32 max_search_nodes; |
16 * uint32 max_search_nodes; |
17 * .... all other yapf related settings ... |
17 * .... all other yapf related settings ... |
18 * } YapfSettings; |
18 * }; |
19 * |
19 * |
20 * otherwise we will just expand YS_DEF_xx macros and then #undef them |
20 * otherwise we will just expand YS_DEF_xx macros and then #undef them |
21 */ |
21 */ |
22 # define YS_DEF_BEGIN typedef struct YapfSettings { |
22 # define YS_DEF_BEGIN struct YapfSettings { |
23 # define YS_DEF(type, name) type name; |
23 # define YS_DEF(type, name) type name; |
24 # define YS_DEF_END } YapfSettings; |
24 # define YS_DEF_END }; |
25 |
25 |
26 # endif /* !YS_DEF */ |
26 # endif /* !YS_DEF */ |
27 |
27 |
28 # ifndef YS_DEF_BEGIN |
28 # ifndef YS_DEF_BEGIN |
29 # define YS_DEF_BEGIN |
29 # define YS_DEF_BEGIN |