修正编译错误.
This commit is contained in:
parent
b988eff697
commit
bbd3669fd7
@ -134,10 +134,10 @@ else
|
|||||||
```cpp
|
```cpp
|
||||||
#define DEBUG_LEVEL 1
|
#define DEBUG_LEVEL 1
|
||||||
|
|
||||||
#define DEBUG(level, fmt, ...) \
|
#define DEBUG(level, ...) \
|
||||||
do { \
|
do { \
|
||||||
if(level<DEBUG_LEVEL) \
|
if(level<DEBUG_LEVEL) \
|
||||||
printf(fmt, __VA_ARGS__); \
|
printf(__VA_ARGS__); \
|
||||||
}while(0)
|
}while(0)
|
||||||
|
|
||||||
DEBUG(0, "file:%s, func:%s, line:%d\n", __FILE__, __FUNCTION__, __LINE__); // 打印当前文件名, 函数名和行号.
|
DEBUG(0, "file:%s, func:%s, line:%d\n", __FILE__, __FUNCTION__, __LINE__); // 打印当前文件名, 函数名和行号.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user