#define PRT(...)printf("Filename %s, Function %s, Line %d > ", __FILE__, __FUNCTION__, __LINE__); \
printf(__VA_ARGS__); \
printf("\n");
推荐使用这个宏:
#define DVR_PRT(format,...)printf("[File:"__FILE__", Line:%d] "format, __LINE__, ##__VA_ARGS__)
#define PRT(format,...)printf("[File:%s, Line:%d] "format, __FILE__, __LINE__, ##__VA_ARGS__)
APP_PLATFORM := android-21
APP_ABI := armeabi-v7a
网友评论