参数变化情况提供到C preprocessor宏 [英] Change case of argument provided to C preprocessor macro

查看:79
本文介绍了参数变化情况提供到C preprocessor宏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是相当新到C preprocessor。是否有可能改变提供给参数的情况下,功能似的的#define ?例如,我想写测试(大小)键,然后在出现的更换涉及大小。

I'm fairly new to the C preprocessor. Is it possible to change the case of an argument provided to a function-like #define? For example, I want to write test(size) and then involve "Size" in the resulting replacement.

推荐答案

没有。的preprocessor可以结合标识符以形成新的,但是它不能修改的标识符

No. The preprocessor can combine identifiers to form new ones, but it cannot modify an identifier.

这篇关于参数变化情况提供到C preprocessor宏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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