Can a C macro contain temporary variables?

后端 未结 9 668
忘掉有多难
忘掉有多难 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:21

    If you're using c++ use inline, or use -o3 with gcc it will inline all functions for you. I still don't understand why you need to macroize this function.

提交回复
热议问题