debug.h

来自「The major functionality added in this re」· C头文件 代码 · 共 22 行

H
22
字号
#include <stdio.h>#ifndef _DEBUG_H_#define _DEBUG_H_#if (defined(__APPLE__) && defined(__MACH__)) // Mac OS X and Darwin /* I can't get this to work under OS X, Apple really screwed up the  * preprocessor somehow. So for now, disable it. */#define DBG#else#ifdef DEBUG_FILE#define DBG(fmt, args...) printf( "%s: " fmt, __FUNCTION__ , ## args); fflush(stdout)#else#define DBG(fmt, args...)#endif#endif /* MacOS X */#endif /* _DEBUG_H_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?