#define fatal(format, ...) do { \
fprintf(stderr, format, ##__VA_ARGS__); \
exit(1); \
} while (0)
#define WIN32_LEAN_AND_MEAN
#include "get-exe-icon.h"
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
int main()
{
std::string path="dfdfdfd";
fatal("Cannot open file '%S'.\n", path.c_str());
return 0;
}
日志的写法(c++)
最新推荐文章于 2023-06-28 15:45:06 发布