0
#define TEST

如何在源文件中将 TEST 设为空字符串?

4

2 回答 2

3

Should I see an issue of empty text macro propagated throughout a source file as something normal ? For specific cases e.g in windows programming with use of wide characters

#define EMPTY_TEXT L""

or

#define EMPTY_TEXT _T("")

or

#define EMPTY_TEXT TEXT("")

于 2012-11-20T10:28:43.173 回答
2

如果您只需要一个空的 C 字符串:

#define TEST ""
于 2012-11-20T10:15:22.727 回答