Any utility to test expand C/C++ #define macros?

前端 未结 5 822
渐次进展
渐次进展 2020-12-24 00:41

It seems I often spend way too much time trying to get a #define macro to do exactly what i want. I\'ll post my current dilemma below and any help is appreciated. But really

5条回答
  •  粉色の甜心
    2020-12-24 01:18

    Go to https://godbolt.org/. Enter your code in the left pane and select compiler as gcc put the argument as -E in the right pane. Your pre-processed code will appear on the right.

提交回复
热议问题