1 /* 2 * Copyright 2015-2016 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 */ 6 #ifndef _H2DEBUG_H 7 #define _H2DEBUG_H 8 9 10 #include <KernelExport.h> 11 12 13 #ifdef DEBUG 14 # define TRACE(x...) dprintf("h2generic: " x) 15 #else 16 # define TRACE(x...) ; 17 #endif 18 19 #define ERROR(x...) dprintf("h2generic: " x) 20 #define CALLED(x...) TRACE("h2generic: CALLED %s\n", __PRETTY_FUNCTION__) 21 22 23 #endif /* _H2DEBUG_H */ 24