iet_debug.h

来自「this is a driver for the davicom etherne」· C头文件 代码 · 共 54 行

H
54
字号
/**********************************************************************************
*
* 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 + =
减小字号Ctrl + -
显示快捷键?