14 lines · cpp
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 11DEFINE(test)12 13void 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 11DEFINE(test)12 13void f1() {}14