Ash*_*Ash 2 c c++ cuda
我在.cuh文件中遇到以下行:
#define mp_ptr(n) P##n
这个P##n部分是什么意思?
P##n
小智 6
它意味着连接.它是C预处理器指令.
所以,mp_ptr(1)成为P1,mp_ptr("foobar")成为P"foobar"等
mp_ptr(1)
P1
mp_ptr("foobar")
P"foobar"
归档时间:
12 年,6 月 前
查看次数:
143 次
最近记录:
8 年,9 月 前