1/*
2 * Copyright 2004-2015 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		J��r��me Duval, jerome.duval@free.fr
7 *		Marcus Overhagen, marcus@overhagen.de
8 *		J��r��me L��v��que, leveque.jerome@gmail.com
9 */
10
11
12#ifndef _DEBUG_ICE1712_H_
13#define _DEBUG_ICE1712_H_
14
15//#define ICE1712_VERBOSE
16#ifdef ICE1712_VERBOSE
17#	define ITRACE(a...) dprintf("ice1712: " a)
18#else
19#	define ITRACE(a...) (void)0
20#endif
21
22//#define ICE1712_VERY_VERBOSE
23#ifdef ICE1712_VERY_VERBOSE
24#	define ITRACE_VV(a...) ITRACE(a)
25#else
26#	define ITRACE_VV(a...) (void)0
27#endif
28
29#undef ASSERT
30#if DEBUG > 0
31	#define ASSERT(a)		if (a) {} else \
32		dprintf("ASSERT failed! file = %s, line = %d\n",__FILE__,__LINE__)
33#else
34	#define ASSERT(a)	((void)(0))
35#endif
36
37#endif // _DEBUG_ICE1712_H_
38