修正编译错误.

This commit is contained in:
lion187 2023-07-06 14:03:09 +08:00
parent b988eff697
commit bbd3669fd7
1 changed files with 2 additions and 2 deletions

View File

@ -134,10 +134,10 @@ else
```cpp
#define DEBUG_LEVEL 1
#define DEBUG(level, fmt, ...) \
#define DEBUG(level, ...) \
do { \
if(level<DEBUG_LEVEL) \
printf(fmt, __VA_ARGS__); \
printf(__VA_ARGS__); \
}while(0)
DEBUG(0, "file:%s, func:%s, line:%d\n", __FILE__, __FUNCTION__, __LINE__); // 打印当前文件名, 函数名和行号.