code
#include <stdio.h>
void string_in_string_test1(void) {
#define FLAG "d"
#if ((defined _WIN32) || (defined _WIN64))
printf_s("hahaha %" FLAG "hahaha\n", 100);
#elif ((defined __liunx__))
printf("hahaha %"FLAG"hahaha\n", 100);
#endif
}
performance
conclusion
GNU编译器,FLAG前后的空格可加可不加
MSBUILD编译器,FLAG前的空格必须加