2008-02-01 23:59:14 +03:00
|
|
|
/*
|
2016-04-10 07:40:23 +03:00
|
|
|
* Copyright 2015-2016 Haiku, Inc. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
2008-02-01 23:59:14 +03:00
|
|
|
*
|
|
|
|
*/
|
2016-04-10 07:40:23 +03:00
|
|
|
#ifndef _BTDEBUG_H
|
|
|
|
#define _BTDEBUG_H
|
2008-02-01 23:59:14 +03:00
|
|
|
|
2016-06-05 19:55:44 +03:00
|
|
|
|
2016-04-10 07:40:23 +03:00
|
|
|
#ifdef DEBUG
|
|
|
|
# define TRACE(x...) dprintf("bt: " x)
|
2008-02-01 23:59:14 +03:00
|
|
|
#else
|
2016-04-10 07:40:23 +03:00
|
|
|
# define TRACE(x...) ;
|
2008-02-01 23:59:14 +03:00
|
|
|
#endif
|
|
|
|
|
2016-04-10 07:40:23 +03:00
|
|
|
#define ERROR(x...) dprintf("bt: " x)
|
|
|
|
#define CALLED(x...) TRACE("bt: CALLED %s\n", __PRETTY_FUNCTION__)
|
2008-02-01 23:59:14 +03:00
|
|
|
|
|
|
|
|
2016-04-10 07:40:23 +03:00
|
|
|
#endif /* _BTDEBUG_H */
|