38 lines
1.0 KiB
C
38 lines
1.0 KiB
C
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//START -- 宏定义
|
|
#define ENABLE_XLOG 1
|
|
#ifdef xlog
|
|
#undef xlog
|
|
#endif
|
|
#if ENABLE_XLOG
|
|
#define xlog(format, ...) printf("[%s] " format, __func__, ##__VA_ARGS__)
|
|
#else
|
|
#define xlog(format, ...) ((void)0)
|
|
#endif
|
|
|
|
//END -- 宏定义
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//START -- 变量定义
|
|
|
|
|
|
|
|
|
|
//END -- 变量定义
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//START -- 函数定义
|
|
|
|
|
|
//END -- 函数定义
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////////////////////////
|
|
//实现
|