Multi-statement Macros in C++

前端 未结 7 1443
轻奢々
轻奢々 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:58

    also, see if you can replace the macro with a function.

    ?
    MATCH_SYMBOL(Sym const & symbol, Tok const & token)
    {
        ...
    }
    

提交回复
热议问题