1 #ifndef LOG_H
 2 #define LOG_H
 3 
 4 #include <stdio.h>
 5 
 6 void debuglog ( FILE *fh,
 7                 const char *file, const char *function, size_t line,
 8                 const char *fmt, ... );
 9 
10 #define DEBUGLOG(_fmt, ...)     \
11         debuglog(stderr, __FILE__, __FUNCTION__, __LINE__, (_fmt), __VA_ARGS__)
12 
13 #endif /* LOG_H */


syntax highlighted by Code2HTML, v. 0.9.1