Why is this nested macro replacement failing?

后端 未结 3 1079
忘了有多久
忘了有多久 2021-01-04 14:08

I am trying to apply the X Macro concept, in order to have the possibility to initialize all struct members to a custom default (invalid) value. I write the following code:<

3条回答
  •  渐次进展
    2021-01-04 14:48

    You might also try to check the output of expanded macros. If you are using gcc as a compiler, gcc -E >> full_src.txt' shall help. More details are here: Seeing expanded C macros

提交回复
热议问题