summaryrefslogtreecommitdiffabout
path: root/include/opkele/debug.h
blob: a02f8d41f992e733e22ff6009dabfaca5d73520a (plain)
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 */