What does ## in a #define mean?

后端 未结 6 2287
感情败类
感情败类 2020-12-05 22:47

What does this line mean? Especially, what does ## mean?

#define ANALYZE(variable, flag)     ((Something.##variable) & (flag))

Edit:

6条回答
  •  醉话见心
    2020-12-05 23:48

    ## is called token concatenation, used to concatenate two tokens in a macro invocation.

    See this:

    • Macro Concatenation with the ## Operator

提交回复
热议问题