Is it possible to un-const typeof in gcc pure C?

后端 未结 5 1278
误落风尘
误落风尘 2021-02-19 14:42

I have a macro that uses GCC\'s typeof to create a variable of the same type of a macro argument. The problem is: if that argument has const type, the variable crea

5条回答
  •  故里飘歌
    2021-02-19 15:26

    There is no standard way in c to modify a const variable or remove the specifier from an existing one.

提交回复
热议问题