c++ - Visual Studio 2019 中奇怪的宏扩展
问题描述
为什么代码末尾的调用扩展为hello, hello
而不是hellohello
?使用 Visual Studio 2019。
#define CONCAT2(a, b) a ##b
#define CONCAT_ALL_H3(n, ...) CONCAT##n(__VA_ARGS__)
CONCAT_ALL_H3(2, hello, hello)
解决方案
推荐阅读
- tfs - TFS 2018 将 SharePoint 用于什么用途?
- r - diffinv 函数输出不是我想的那样
- python - 使用 sqlalchemy 的动态数据过滤器,它适用于给定值,但不适用于 NULL(None) 值
- flutter - 关于flutter的provider中出现的错误
- java - 运行 junit 时不支持的 major.minor 版本 52.0
- wordpress - 如何使用盐和密钥解密密码
- python - 在 python 中压缩和合并图像
- java - SimpleDateFormat.parse(date_string) 生成上一个日期
- pdf - PDF的大小使用python-multipart打破FastAPI?
- html - 为什么我的 Angular 应用程序的 html 代码中的花括号没有编译其中的内容?