File: debug.h

package info (click to toggle)
libopkele 2.0-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,944 kB
  • ctags: 998
  • sloc: sh: 9,079; cpp: 5,209; makefile: 179; ansic: 68; xml: 57; sql: 55
file content (17 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef __OPKELE_DEBUG_H
#define __OPKELE_DEBUG_H

#ifdef NDEBUG

#define D_(x)		((void)0)
#define DOUT_(x)	((void)0)

#else /* NDEBUG */

#define D_(x)		x
#include <iostream>
#define DOUT_(x)	std::clog << x << std::endl

#endif /* NDEBUG */

#endif /* __OPKELE_DEBUG_H */