| 1 | #include "macro_helper_test.h" |
|---|---|
| 2 | |
| 3 | #define DEFINE(name) \ |
| 4 | namespace ns { \ |
| 5 | static const bool t1 = false; \ |
| 6 | bool t2_##name = t1; \ |
| 7 | bool t3_##name = t1; \ |
| 8 | } \ |
| 9 | using ns::t2_##name; |
| 10 | |
| 11 | DEFINE(test) |
| 12 | |
| 13 | void f1() {} |
| 14 |
| 1 | #include "macro_helper_test.h" |
|---|---|
| 2 | |
| 3 | #define DEFINE(name) \ |
| 4 | namespace ns { \ |
| 5 | static const bool t1 = false; \ |
| 6 | bool t2_##name = t1; \ |
| 7 | bool t3_##name = t1; \ |
| 8 | } \ |
| 9 | using ns::t2_##name; |
| 10 | |
| 11 | DEFINE(test) |
| 12 | |
| 13 | void f1() {} |
| 14 |