File: Debug.h

package info (click to toggle)
gopher 3.0.17.3%2Bnmu1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,476 kB
  • sloc: ansic: 13,895; sh: 1,349; makefile: 318
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 */