changed map and list templates to be more useable, however, they will

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
This commit is contained in:
beveloper
2002-12-03 00:59:42 +00:00
parent 68bb610bbc
commit 353b9f6bce
26 changed files with 297 additions and 253 deletions
+23 -13
View File
@@ -1,40 +1,50 @@
#ifndef _MEDIA_DEBUG_H_
#define _MEDIA_DEBUG_H_
#include <Debug.h>
#include <stdio.h>
#undef TRACE
#ifndef DEBUG
#define DEBUG 0
#endif
#ifndef NDEBUG
#ifndef DEBUG
#define DEBUG 2
#endif
#if DEBUG >= 1
#define UNIMPLEMENTED() printf("libmedia.so: UNIMPLEMENTED %s\n",__PRETTY_FUNCTION__)
#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("libmedia.so: BROKEN %s\n",__PRETTY_FUNCTION__)
#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("libmedia.so: CALLED %s\n",__PRETTY_FUNCTION__)
#define CALLED() printf("CALLED %s\n",__PRETTY_FUNCTION__)
#define INFO printf
#else
#define CALLED() ((void)0)
#define INFO if (1) {} else printf
#endif
#undef TRACE
#define TRACE \
printf
#else
#define UNIMPLEMENTED() ((void)0)
#define BROKEN() ((void)0)
#define CALLED() ((void)0)
#define TRACE \
if (1) {} else printf
#define FATAL if (1) {} else printf
#define TRACE if (1) {} else printf
#define INFO if (1) {} else printf
#endif
#endif /* _MEDIA_DEBUG_H_ */