Is __COUNTER__ macro portable?

前端 未结 3 1229
南方客
南方客 2021-01-13 01:10

I have a piece of code which uses __COUNTER__ macro to generate unique names for variables.

Is this code portable ? I know that GCC and MSVS support it.

3条回答
  •  鱼传尺愫
    2021-01-13 01:34

    It seems NO. When I ctrl+f "__COUNTER__" on standard pdf, I couldn't find anything >o<

提交回复
热议问题