xref: /haiku/src/add-ons/kernel/drivers/audio/ice1712/debug.h (revision 68ea01249e1e2088933cb12f9c28d4e5c5d1c9ef)
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