repo.or.cz
/
xylftp.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add debug.h and clean Makefile
[xylftp.git]
/
server
/
src
/
debug.h
blob
e9d1e11bbd16242d6efc24ab51aa7356a4a9b12b
1
#ifndef DEBUG_H
2
#define DEBUG_H
3
4
#include <stdio.h>
5
6
#ifdef DEBUG
7
8
#define debug_printf(fmt, ...) \
9
printf(
"DEBUG: %s:%d@%s: "
fmt,\
10
__FILE__, __LINE__, __FUNCTION__, ##__VA_ARGS__)
11
12
#else
/* !DEBUG */
13
14
#define debug_printf(fmt, ...) do{} while(0)
15
16
#endif
/* DEBUG */
17
18
#endif
/* DEBUG_H */