修正编译错误.
This commit is contained in:
parent
b988eff697
commit
bbd3669fd7
@ -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__); // 打印当前文件名, 函数名和行号.
|
||||
|
Loading…
x
Reference in New Issue
Block a user