File: debug.h

package info (click to toggle)
zoo 2.10-9
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 780 kB
  • ctags: 1,288
  • sloc: ansic: 9,041; asm: 793; makefile: 211
file content (31 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* @(#) 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