aboutsummaryrefslogtreecommitdiffstats
path: root/wlp/C/macro.h
blob: 303b3c68a57477a677e007c1a210d3e2cca076f6 (plain) (blame)
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
34
35
36
37
38
39
40
41
42
43
44
/*
 * macro.h - Copyright 2000, 2001 Cosimo Alfarano <Alfarano@CS.UniBo.It>
 * You can use this software under the terms of the GPL. If we meet some day,
 * and you think this stuff is worth it, you can buy me a beer in return.
 *
 * Thanks to md for this useful formula. Beer is beer.
 */


#ifndef _macro_h_
#define _macro_h_

#define LINELEN		2048
#define TRUE		1
#define FALSE		0

/*
#define WITHQUOTES 
#define WITHANGBRACKETS
*/

#define ERR(a,b...)     fprintf(stderr, a, ## b)

/* Define it for debug info on stderr (better if in .c module ...) */
/*
#ifndef DEBUG
	#define DEBUG
#endif
*/


#ifdef DEBUG
        #define DBG(a...)	fprintf(stderr,  ## a)
	/* for a verbose debug*/
        #define VDBG(a,b...)	fprintf(stderr, "%s(): " a, __FUNCTION__ , ## b)
#else
        #define DBG(a...)
        #define VDBG(a...)
#endif


#endif

/* EOF */