Can a C macro contain temporary variables?

后端 未结 9 637
忘掉有多难
忘掉有多难 2020-12-16 15:25

I have a function that I need to macro\'ize. The function contains temp variables and I can\'t remember if there are any rules about use of temporary variables in macro subs

9条回答
  •  时光说笑
    2020-12-16 16:12

    They can. They often shouldn't.

    Why does this function need to be a macro? Could you inline it instead?

提交回复
热议问题