#ifndef _DEBUG_H
#define _DEBUG_H
#define PRINT_DEBUG_ENABLE 1 /* 打印调试信息 */
#define PRINT_ERR_ENABLE 0 /* 打印错误信息 */
#define PRINT_INFO_ENABLE 0 /* 打印个人信息 */
#if PRINT_DEBUG_ENABLE
#define PRINT_DEBUG(fmt, args...) do{(printf("\n[DEBUG] >> "), printf(fmt, ##args));}while(0)
#else
#define PRINT_DEBUG(fmt, args...)
#endif
#if PRINT_ERR_ENABLE
#define PRINT_ERR(fmt, args...) do{(printf("\n[ERR] >> "), printf(fmt, ##args));}while(0)
#else
#define PRINT_ERR(fmt, args...)
#endif
#if PRINT_INFO_ENABLE
#define PRINT_INFO(fmt, args...) do{(printf("\n[INFO] >> "), printf(fmt, ##args));}while(0)
#else
#define PRINT_INFO(fmt, args...)
#endif
#endif /* __DEBUG_H */