我想知道是否可以通过Boost预处理器序列完成以下操作。 (大多数SO问题以及Boost预处理器示例仅讨论1个序列) #define seq1 (a)(b)(c)
#define seq2 (1)(2)(3)
// Now iterate over both of them at the same time
这是我的动机。我必须为很多类型定义一些函数,例如 void add(int va
是什么这两个码的区别: #define check 0
int main(void)
{
#if check
this is a normal line
#endif
return 0;
}
这一个: int main(void)
{
/*
this is a normal line
*/
return 0;
}
他们是一模一样?