📄 iet_debug.h
字号:
/**********************************************************************************
*
* iet_debug.h
*
* Debug macros
*
* This file contains usefull debug macros for debuging via printf statements.
* Two levels of debug prints are available: A_ and B_. A_ should be used for
* information to the user and B_ should be used when reporting an error.
*
* To enable the macro's define either the PRINT_A flag, the PRINT_B flag or
* both to enable both levels of debug output.
*
**********************************************************************************/
#ifndef IET_DEBUG_GUARD
#define IET_DEBUG_GUARD
// Some combinations of debug prints.
#ifdef PRINT_ALL
#define PRINT_A
#define PRINT_B
#define PRINT_C
#endif
#ifdef PRINT_BC
#define PRINT_B
#define PRINT_C
#endif
#ifdef PRINT_AB
#define PRINT_A
#define PRINT_B
#endif
#ifdef PRINT_A
#define A_(n) n
#else
#define A_(n)
#endif
#ifdef PRINT_B
#define B_(n) n
#else
#define B_(n)
#endif
#ifdef PRINT_C
#define C_(n) n
#else
#define C_(n)
#endif
#endif // IET_DEBUG_GUARD
// EOF
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -