File: debug.h

package info (click to toggle)
libopenobex 1.7.2-2.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 984 kB
  • sloc: ansic: 9,988; xml: 407; makefile: 29
file content (13 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
//#define DEBUG_TCP 1

#if defined(_MSC_VER) && _MSC_VER < 1400
static void DEBUG(int n, char *format, ...) {}

#elif IRCP_DEBUG
#  define DEBUG(n, format, ...)						\
	if(n <= IRCP_DEBUG)						\
		fprintf(stderr, "%s(): " format, __FUNCTION__ , ## __VA_ARGS__)

#else
#  define DEBUG(n, format, ...)
#endif