File: debug.h

package info (click to toggle)
xtrojka 123-12
  • links: PTS
  • area: non-free
  • in suites: slink
  • size: 492 kB
  • ctags: 443
  • sloc: ansic: 3,087; makefile: 135; sh: 19
file content (33 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (4)
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
32
33
/*
 *	xtrojka (c) 1994,1995,1996 Maarten Los
 *
 *	#include "COPYRIGHT"	
 *
 *	created:	26.xi.1995
 *	modified:
 *
 *	This module is used for displaying debug information
 */

#ifndef _debug_h_
#define _debug_h_


#ifdef DEBUG_INFO

#include <stdio.h>
#include "xtrojka.h"

extern flag is_debug_info;

#define DEBUG(s1,s2)	if(is_debug_info) { \
			fprintf(stderr,"DEBUG: %s: %s\n", s1, s2); \
			fflush(stderr); }

#else

#define DEBUG(s1,s2)	;

#endif /* DEBUG_INFO */

#endif /* _debug_h_ */