#include <stdio.h>
#define DEBUGFMT "%s(%d)-%s: "
#define DEBUGARGS __FILE__,__LINE__,__FUNCTION__
int main(void)
{
printf(DEBUGFMT "err\n", DEBUGARGS );
return 0;
}
#include <stdio.h>
#define DEBUGFMT "%s(%d)-%s: "
#define DEBUGARGS __FILE__,__LINE__,__FUNCTION__
int main(void)
{
printf(DEBUGFMT "err\n", DEBUGARGS );
return 0;
}
转载于:https://my.oschina.net/guyson/blog/354501