返回信息流代码如下
``` c
#define test(_1, _2, _3, _4, _5, _6, _7, N, ...) N
```
其中test传入了11个参数,_1是代表传入的第一参数?
又碰到一个长见识的宏问题,代码如下
``` c
#define test1(i, a, ...) typedef typeof(a) typeof_##a
#define test2( test(11args), test1, ...)
```
在test2中替换test1不用传从参数进去的吗?是不是就变成了
``` c
#define test2( test(11args), typedef typeof(a) typeof_a, ...)
```
这是一条镜像帖。来源:北邮人论坛 / cpp / #94487同步于 2017/2/16
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
宏定义中在参数中的下划线加数字是什么意思?
jh1
2017/2/16镜像同步5 回复
订阅后,新回复会通过你的通知中心匿名送达。
5 条回复