Files
haiku-beta6/headers/private/media/debug.h
T

51 lines
1.0 KiB
C
Raw Normal View History

#ifndef _MEDIA_DEBUG_H_
#define _MEDIA_DEBUG_H_
2002-07-09 12:24:59 +00:00
#include <Debug.h>
2002-07-09 12:24:59 +00:00
#include <stdio.h>
#undef TRACE
2002-07-09 12:24:59 +00:00
#ifndef DEBUG
#define DEBUG 0
#endif
#ifndef NDEBUG
2002-07-09 12:24:59 +00:00
#if DEBUG >= 1
#define UNIMPLEMENTED() printf("UNIMPLEMENTED %s\n",__PRETTY_FUNCTION__)
#define FATAL printf
2002-07-09 12:24:59 +00:00
#else
#define UNIMPLEMENTED() ((void)0)
#define FATAL if (1) {} else printf
2002-07-09 12:24:59 +00:00
#endif
#if DEBUG >= 2
#define BROKEN() printf("BROKEN %s\n",__PRETTY_FUNCTION__)
#define TRACE printf
2002-07-09 12:24:59 +00:00
#else
#define BROKEN() ((void)0)
#define TRACE if (1) {} else printf
2002-07-09 12:24:59 +00:00
#endif
#if DEBUG >= 3
#define CALLED() printf("CALLED %s\n",__PRETTY_FUNCTION__)
#define INFO printf
2002-07-09 12:24:59 +00:00
#else
#define CALLED() ((void)0)
#define INFO if (1) {} else printf
2002-07-09 12:24:59 +00:00
#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
2002-07-09 12:24:59 +00:00
#endif
#endif /* _MEDIA_DEBUG_H_ */