Multi-statement Macros in C++

前端 未结 7 1369
轻奢々
轻奢々 2021-01-19 08:00

In C++, is it possible to make a multi-statement macro with nested if statements inside of it like the one below? I\'ve be

7条回答
  •  无人及你
    2021-01-19 08:49

    One can also define macro function and implement the function than

    #define MATCH_SYMBOL( symbol, token) match_symbol(symbol,token)
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题