OpenMAXBellagio 0.9.3
user_debug_levels.h
Go to the documentation of this file.
00001 
00031 #define DEB_LEV_NO_OUTPUT  0
00032 
00034 #define DEB_LEV_ERR        1
00035 
00037 #define DEB_LEV_PARAMS     2
00038 
00041 #define DEB_LEV_SIMPLE_SEQ 4
00042 
00046 #define DEB_LEV_FULL_SEQ   8
00047 
00050 #define DEB_LEV_FUNCTION_NAME 16
00051 
00055 #define DEFAULT_MESSAGES 32
00056 
00059 #define DEB_ALL_MESS   255
00060 
00061 
00063 #define DEBUG_LEVEL (DEB_LEV_ERR | DEFAULT_MESSAGES)
00064 #if DEBUG_LEVEL > 0
00065 #define DEBUG(n, args...) do { if (DEBUG_LEVEL & (n)){fprintf(stderr, args);} } while (0)
00066 #else
00067 #define DEBUG(n, args...)
00068 #endif
00069