repo.or.cz
/
beanstalkd.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add a debugging print macro.
[beanstalkd.git]
/
util.h
blob
d06285680d10817d4cb0e5f088d1aed85a18bc28
1
#ifndef util_h
2
#define util_h
3
4
#define min(a,b) ((a)<(b)?(a):(b))
5
6
int
warn
(
const char
*
s
);
7
8
void
v
();
9
10
#ifdef DEBUG
11
#define dprintf(fmt, args...) fprintf(stderr, fmt, ##args)
12
#else
13
#define dprintf(fmt, ...) (0)
14
#endif
15
16
#endif
/*util_h*/