debug.h

来自「《汇编源代码大全》」· C头文件 代码 · 共 32 行

H
32
字号
/* @(#) debug.h 2.1 87/12/25 12:22:02 */

/* 
The contents of this file are hereby released to the public domain.

                           -- Rahul Dhesi 1986/11/14

defines conditional function calls 

Usage:  The statement

   debug((printf("y = %d\n", y)))

may be placed anywhere where two or more statements could be used.  It will 
print the value of y at that point.

Conditional compilation:

   if DEBUG is defined
      define the macro debug(X) to execute statement X
   else
      define the macro debug(X) to be null
   endif
*/

#ifdef DEBUG
#define  debug(x)    x;
#else
#define  debug(x)
#endif

⌨️ 快捷键说明

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