Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

debug.h

Go to the documentation of this file.
00001 /* For debugging the various program modules. 00002 00003 All variables start with TRACE_; use a level to determine how much is 00004 logged; 0 is minimal (or no) logging, higher numbers should log more. 00005 00006 To enable tracing, #define ENABLE_TRACING in the file that you want to 00007 trace, before you include "config.h" or "debug.h". 00008 00009 Use the macro like this: 00010 00011 Trace(CONFIGFILE, 3, "Opening log file"); 00012 00013 This message will only be printed if TRACE_CONFIGFILE is >= 3, i.e. very 00014 verbose. A newline is automatically appended. 00015 00016 */ 00017 00018 #ifdef ENABLE_TRACING 00019 #undef Trace 00020 #define Trace(what, level, string...) \ 00021 if (TRACE_##what >= level) { \ 00022 fprintf(stderr, string); \ 00023 fprintf(stderr, "\n"); \ 00024 } 00025 #else 00026 #undef Trace 00027 #define Trace(what, level, string...) /* nop */ 00028 #endif 00029 00030 00031 #define TRACE_CONFIGFILE 1 00032 00033 #define TRACE_PANELREG 1 00034 #define TRACE_PANELPOS 1 00035 #define TRACE_PANELSIGNALS 1 00036 00037 // CamCanvas.cc 00038 #define TRACE_CANVAS_OPEN 1 00039 00040 // VideoCollector.cc 00041 /* #define TRACE_VIDEOCOLLECTOR 1 */ 00042 #undef TRACE_VIDEOCOLLECTOR 00043 00044 // VideoDevice.cc 00045 #undef TRACE_VIDEODEV_READ 00046 #define TRACE_VIDEODEV_OPEN 1 00047 #define TRACE_VIDEODEV_IOCTL 1 00048 00049 00050 /* 'Philips Control' dialog */ 00051 #define TRACE_PHCONTROL_DLG 2 00052 00053 /* FTP */ 00054 #define TRACE_FTP 2 00055 00056 /* VideoOptions */ 00057 #define TRACE_VIDEOOPTIONS 2

Generated on Wed Dec 13 23:38:46 2006 for CamStream by doxygen 1.3.7