debug log

#include <stdio.h>

#define DEBUGFMT  "%s(%d)-%s: "
#define DEBUGARGS __FILE__,__LINE__,__FUNCTION__

int main(void)
{

	printf(DEBUGFMT "err\n", DEBUGARGS );
	return 0;
}



你可能感兴趣的:(__FILE__,define,__line__,__FUNCTION__)