Change case of argument provided to C preprocessor macro

前端 未结 1 1391
小蘑菇
小蘑菇 2020-12-20 13:34

I\'m fairly new to the C preprocessor. Is it possible to change the case of an argument provided to a function-like #define? For example, I want to write

1条回答
  •  不知归路
    2020-12-20 14:01

    No. The preprocessor can combine identifiers to form new ones, but it cannot modify an identifier.

    0 讨论(0)
提交回复
热议问题