#define DEBUG(str, args...) \
{\
FILE *tfp;\
if ((tfp = fopen("./debug.log", "a")) != NULL)\
{\
fprintf(tfp, "%s, %d: ", __FUNCTION__, __LINE__);\
fprintf(tfp, str, ##args);\
fclose(tfp);\
}\
}
转载于:https://my.oschina.net/u/3423525/blog/882255
转载于:https://my.oschina.net/u/3423525/blog/882255