Printf宏定义日志
#if (defined(DEBUG) || defined(_DEBUG)) #define DEBUG_PRINT(format,...) printf("File: " __FILE__ ", Line: %05d: " format "/n", __LINE__, ##__VA_ARGS__) #else #define DEBUG_PRINT(format,...) #endif