#include
#define BADAGE __DATE__" "__TIME__" "__FILE__
#define BADAGE2 __DATE__" "__TIME__
#define Debug_print(format,...) printf(":%s || :%s || :%d\n"format,BADAGE2,__FILE__,__LINE__,__VA_ARGS__ )
Example:
int main(int argc , char *argv[])
{
Debug_print("%s \n","ERROR");
printf("%s\n",BADAGE);
return 0;
}
阅读(1149) | 评论(0) | 转发(0) |