mirror of
https://review.haiku-os.org/haiku
synced 2025-02-20 20:50:05 +01:00
be rewritten soon. Changed debugging macros and use of them, too. Also replaced the linked lists in the BufferManager (which were complicated, but working ok) with template based ones. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2133 a95241bf-73f2-0310-859d-f6bbb57e9c96
51 lines
1.0 KiB
C
51 lines
1.0 KiB
C
#ifndef _MEDIA_DEBUG_H_
|
|
#define _MEDIA_DEBUG_H_
|
|
|
|
#include <Debug.h>
|
|
#include <stdio.h>
|
|
|
|
#undef TRACE
|
|
|
|
#ifndef DEBUG
|
|
#define DEBUG 0
|
|
#endif
|
|
|
|
#ifndef NDEBUG
|
|
|
|
#if DEBUG >= 1
|
|
#define UNIMPLEMENTED() printf("UNIMPLEMENTED %s\n",__PRETTY_FUNCTION__)
|
|
#define FATAL printf
|
|
#else
|
|
#define UNIMPLEMENTED() ((void)0)
|
|
#define FATAL if (1) {} else printf
|
|
#endif
|
|
|
|
#if DEBUG >= 2
|
|
#define BROKEN() printf("BROKEN %s\n",__PRETTY_FUNCTION__)
|
|
#define TRACE printf
|
|
#else
|
|
#define BROKEN() ((void)0)
|
|
#define TRACE if (1) {} else printf
|
|
#endif
|
|
|
|
#if DEBUG >= 3
|
|
#define CALLED() printf("CALLED %s\n",__PRETTY_FUNCTION__)
|
|
#define INFO printf
|
|
#else
|
|
#define CALLED() ((void)0)
|
|
#define INFO if (1) {} else printf
|
|
#endif
|
|
|
|
#else
|
|
|
|
#define UNIMPLEMENTED() ((void)0)
|
|
#define BROKEN() ((void)0)
|
|
#define CALLED() ((void)0)
|
|
#define FATAL if (1) {} else printf
|
|
#define TRACE if (1) {} else printf
|
|
#define INFO if (1) {} else printf
|
|
|
|
#endif
|
|
|
|
#endif /* _MEDIA_DEBUG_H_ */
|