【发布时间】:2014-09-13 22:03:45
【问题描述】:
这个宏
#define f(x) x x
f (1
#undef f
#define f 2
f)
根据this link 扩展至此1 2 1 2。
它实际上是这样做的,我已经用Xcode Product > Perform Action > Preprocess 进行了验证,但是在扩展这个宏时预处理器会遵循哪些步骤?
【问题讨论】:
-
你对我的回答不满意吗?
-
@Étienne 已修复。谢谢你的解释。我从中学到了。
-
谢谢,很高兴它有帮助;)
标签: c xcode macros c-preprocessor