File: debug.h

package info (click to toggle)
libopkele 2.0.4-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,844 kB
  • ctags: 1,075
  • sloc: sh: 10,137; cpp: 4,879; makefile: 175; xml: 82; ansic: 70; 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 */