OLD | NEW |
1 #include <stdio.h> | 1 #include <stdio.h> |
2 | 2 |
3 #define SPLICE(a, b) INNER_SPLICE(a, b) | 3 #define SPLICE(a, b) INNER_SPLICE(a, b) |
4 #define INNER_SPLICE(a, b) a ## b | 4 #define INNER_SPLICE(a, b) a ## b |
5 #define STRINGIFY(a) INNER_STRINGIFY(a) | 5 #define STRINGIFY(a) INNER_STRINGIFY(a) |
6 #define INNER_STRINGIFY(a) #a | 6 #define INNER_STRINGIFY(a) #a |
7 | 7 |
8 #define FIFTY_SEVEN 57 | 8 #define FIFTY_SEVEN 57 |
9 | 9 |
10 #define FORTY_EIGHT 48 | 10 #define FORTY_EIGHT 48 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 puts ("macscp1_3"); | 82 puts ("macscp1_3"); |
83 } | 83 } |
84 | 84 |
85 void | 85 void |
86 macscp_expr (void) | 86 macscp_expr (void) |
87 { | 87 { |
88 int foo = -1; | 88 int foo = -1; |
89 | 89 |
90 foo = 0; /* set breakpoint here */ | 90 foo = 0; /* set breakpoint here */ |
91 #define MACRO_TO_EXPAND foo | 91 #define MACRO_TO_EXPAND foo |
92 foo = 1; | 92 foo = 1;» » » /* set second breakpoint here */ |
93 #undef MACRO_TO_EXPAND | 93 #undef MACRO_TO_EXPAND |
94 foo = 2; | 94 foo = 2;» » » /* stopping point for line test */ |
95 } | 95 } |
96 | 96 |
97 #define TWENTY_THREE 23 | 97 #define TWENTY_THREE 23 |
98 | 98 |
99 int | 99 int |
100 main (int argc, char **argv) | 100 main (int argc, char **argv) |
101 { | 101 { |
102 macscp1_1 (); | 102 macscp1_1 (); |
103 macscp2_1 (); | 103 macscp2_1 (); |
104 macscp4_1_from_macscp2 (); | 104 macscp4_1_from_macscp2 (); |
105 macscp4_2_from_macscp2 (); | 105 macscp4_2_from_macscp2 (); |
106 macscp2_2 (); | 106 macscp2_2 (); |
107 macscp1_2 (); | 107 macscp1_2 (); |
108 macscp3_1 (); | 108 macscp3_1 (); |
109 macscp4_1_from_macscp3 (); | 109 macscp4_1_from_macscp3 (); |
110 macscp4_2_from_macscp3 (); | 110 macscp4_2_from_macscp3 (); |
111 macscp3_2 (); | 111 macscp3_2 (); |
112 macscp1_3 (); | 112 macscp1_3 (); |
113 macscp_expr (); | 113 macscp_expr (); |
114 } | 114 } |
OLD | NEW |