File: Debug.h

package info (click to toggle)
gopher 2.3-2
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,364 kB
  • ctags: 2,030
  • sloc: ansic: 22,451; perl: 1,950; sh: 1,510; makefile: 397; asm: 1
file content (22 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef DEBUG_H
#define DEBUG_H

#include "boolean.h"

extern boolean DEBUG;

#ifdef DEBUGGING
#  include <stdio.h>
#  define Debug(str,val) if (DEBUG) { fprintf(stderr,str,val); }
#  define Debugmsg(str)  if (DEBUG) { fprintf(stderr,str); }
#  define DebugGSplusPrint(gop,str) if (DEBUG) { GSplusPrint(gop,str); }

#else 

#  define Debug(str,val)
#  define Debugmsg(str)
#  define DebugGSplusPrint(gop,str)

#endif

#endif /* DEBUG_H */