00001 00035 #define DEB_LEV_NO_OUTPUT 0 00036 00038 #define DEB_LEV_ERR 1 00039 00041 #define DEB_LEV_PARAMS 2 00042 00045 #define DEB_LEV_SIMPLE_SEQ 4 00046 00050 #define DEB_LEV_FULL_SEQ 8 00051 00054 #define DEB_LEV_FUNCTION_NAME 16 00055 00059 #define DEFAULT_MESSAGES 32 00060 00063 #define DEB_ALL_MESS 255 00064 00065 00067 #define DEBUG_LEVEL (DEB_LEV_ERR | DEFAULT_MESSAGES) 00068 #if DEBUG_LEVEL > 0 00069 #define DEBUG(n, args...) do { if (DEBUG_LEVEL & (n)){fprintf(stderr, args);} } while (0) 00070 #else 00071 #define DEBUG(n, args...) 00072 #endif 00073