vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / media / media-add-ons / firewire_dv / debug.h
blob835882f2e8fc5d152c62891f151b3d3c4816d7df
2 #include <stdio.h>
4 #ifndef NDEBUG
6 #ifndef DEBUG
7 #define DEBUG 2
8 #endif
10 #if DEBUG >= 1
11 #define UNIMPLEMENTED() printf("UNIMPLEMENTED %s\n",__PRETTY_FUNCTION__)
12 #else
13 #define UNIMPLEMENTED() ((void)0)
14 #endif
16 #if DEBUG >= 2
17 #define BROKEN() printf("BROKEN %s\n",__PRETTY_FUNCTION__)
18 #else
19 #define BROKEN() ((void)0)
20 #endif
22 #if DEBUG >= 3
23 #define CALLED() printf("CALLED %s\n",__PRETTY_FUNCTION__)
24 #else
25 #define CALLED() ((void)0)
26 #endif
28 #else
30 #define UNIMPLEMENTED() ((void)0)
31 #define BROKEN() ((void)0)
32 #define CALLED() ((void)0)
34 #endif