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 10 #ifdef DEBUG 11 # define TRACE(x...) dprintf("bt: " x) 12 #else 13 # define TRACE(x...) ; 14 #endif 15 16 #define ERROR(x...) dprintf("bt: " x) 17 #define CALLED(x...) TRACE("CALLED %s\n", __PRETTY_FUNCTION__) 18 19 20 #endif /* _BTDEBUG_H */ 21