Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我已经定义了字符串:
#define MY_STRING "This is my string"
但是,某些函数要求我的字符串具有 L 前缀(扩展格式)。
当然我可以再做一个宏
#define MY_STRING_LONG L"This is my string"
但这需要我每次更改两个字符串。是否可以在使用非宽宏时将其“投射”为宽?