什么是两个相邻的井号在C宏是什么意思? [英] What do two adjacent pound signs mean in a C macro?

查看:111
本文介绍了什么是两个相邻的井号在C宏是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在看它定义了一个大集常量数组的应用。真正混淆我是在宏彼此相邻使用两磅重的迹象。例如:

I'm taking a look at an application that defines a large set of constant arrays. What really confuses me is the use of two pound signs next to each other in a macro. For example:

#define r0(p,q,r,s) 0x##p##q##r##s

什么是这两个井号是什么意思?

What do those two pound signs mean?

推荐答案

## 提供了一种串联实际参数 宏扩展中。

## provides a way to concatenate actual arguments during macro expansion.

这篇关于什么是两个相邻的井号在C宏是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆