#include <iostream>
using namespace std;
// put the following code in header file or at the beginning of the source file.
#define __STR2__(x) #x
#define __STR1__(x) __STR2__(x)
#define __LOC__ __FILE__ "("__STR1__(__LINE__)") : Warning Msg: "
// output the user-define information in the source file.
#pragma message(__LOC__"User-defined Information")
#define _REMIND_ME0(a) #a
#define _REMIND_ME1(a) __FILE__ "(" _REMIND_ME0(a) ")"
#define REMIND_ME(a) message(_REMIND_ME1(__LINE__)a)
#pragma REMIND_ME("---------------这只是一个空函数,有时间实现它!---------------------")
int main()
{
return 0;
}
自定义编译输出信息
最新推荐文章于 2023-07-12 12:55:52 发布