00001 #ifndef _DEB_HH_ 00002 #define _DEB_HH_ 00003 00004 00005 #ifdef LOCAL_DEB 00006 #ifndef DO_DEB 00007 #define DO_DEB 00008 #endif 00009 #endif 00010 00011 #ifdef DO_DEB 00012 /* general debugging macro - produces the standard messages about the 00013 * steps of computation - it should not produce the large amounts 00014 * of messages (in one function call) */ 00015 #define DEB(x) x 00016 00017 /* debugging of a long evaluation - e. g. of expression. 00018 * It can produce large amount of messages about variable values */ 00019 #define DEBEVAL(x) x 00020 00021 /* debugging of a function - it should produce the report about 00022 * the start of the function (with the parameters) and about the end 00023 * of the function */ 00024 #define DEBFUNC(x) x 00025 00026 /* In `x' we check whether some contidion holds. We can also exit the 00027 * program, if the condition doesn't hold */ 00028 #define DEBCHECK(x) x 00029 00030 /* Auxiliary debugging message. The message that is only temporary 00031 * and it doesn't have to write any meaningful message. It can 00032 * for example serve of determine, whether the particular part 00033 * of a code has been executed or not. */ 00034 #define DEBAUX(x) x 00035 #else 00036 #define DEB(x) 00037 #define DEBEVAL(x) 00038 #define DEBFUNC(x) 00039 #define DEBCHECK(x) 00040 #define DEBAUX(x) 00041 #endif 00042 #endif 00043