C Macros to create strings

后端 未结 7 2128
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 04:37

Alternative Titles (to aid search)

  • Convert a preprocessor token to a string
  • How to make a char string from a C
7条回答
  •  春和景丽
    2020-11-30 05:14

    As others have noted, use token pasting. You should also be aware that macro names like

    __TESTING
    

    are reserved in C (don't know about Objective C) for the implementation - you are not allowed to use them in your own code. The reserved names are anything containing double underscores and anything begining with an underscore and an uppercase letter.

提交回复
热议问题