1 /* 2 * ice1712 BeOS/Haiku Driver for VIA - VT1712 Multi Channel Audio Controller 3 * 4 * Copyright (c) 2002, Jerome Duval (jerome.duval@free.fr) 5 * Copyright (c) 2003, Marcus Overhagen (marcus@overhagen.de) 6 * Copyright (c) 2007, Jerome Leveque (leveque.jerome@neuf.fr) 7 * 8 * All rights reserved 9 * Distributed under the terms of the MIT license. 10 */ 11 #ifndef _DEBUG_ICE1712_H_ 12 #define _DEBUG_ICE1712_H_ 13 14 #ifdef TRACE 15 # undef TRACE 16 #endif 17 18 //#define ICE1712_VERBOSE 19 #ifdef ICE1712_VERBOSE 20 # define TRACE(a...) dprintf("\33[34mice1712:\33[0m " a) 21 #else 22 # define TRACE(a...) ; 23 #endif 24 25 //#define ICE1712_VERY_VERBOSE 26 #ifdef ICE1712_VERY_VERBOSE 27 # define TRACE_VV(a...) dprintf("\33[34mice1712:\33[0m " a) 28 #else 29 # define TRACE_VV(a...) ; 30 #endif 31 32 #define ASSERT(a) if (a) {} else TRACE("ASSERT failed! file = %s, line = %d\n",\ 33 __FILE__,__LINE__) 34 35 36 #endif // _DEBUG_ICE1712_H_ 37