1 /* 2 * Copyright 2015-2016 Haiku, Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 */ 6 #ifndef _BTDEBUG_H 7 #define _BTDEBUG_H 8 9 // XXX: Remove once things get "better" 10 #define DEBUG 11 #ifdef DEBUG 12 # define TRACE(x...) dprintf("bt: " x) 13 #else 14 # define TRACE(x...) ; 15 #endif 16 17 #define ERROR(x...) dprintf("bt: " x) 18 #define CALLED(x...) TRACE("bt: CALLED %s\n", __PRETTY_FUNCTION__) 19 20 21 #endif /* _BTDEBUG_H */ 22