Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

debug.hpp

Go to the documentation of this file.
00001 /*
00002  * debug.hpp
00003  *
00004  * Time-stamp: <05/04/25 11:33:38 lars>
00005  *
00006  * history: 2004/04/01  1.0  LST created.
00007  */
00008 
00009 #ifndef __DEBUG__
00010 #define __DEBUG__ 
00011 
00019 // 0. set default debug level:
00020 #ifndef DEBUG_LEVEL
00021 #define DEBUG_LEVEL 50
00022 #endif
00023 
00024 #if DEBUG_LEVEL <= 50
00025 #define NDEBUG
00026 #endif
00027 
00028 // 1a. always include iostream for debugging:
00029 #include <iostream>
00030 using namespace std;
00031 // 1b. use assertions depending on NDEBUG
00032 #include <cassert>
00033 
00034 /*#else
00035 // 1'. ABSOLUTELY NO DEBUGGING:
00036 // 1'a. do not use assertions:
00037 #define assert(x) 
00038 #endif
00039 */
00040 
00041 
00042 #endif

Generated on Sun Sep 17 17:50:38 2006 for FIM environment by  doxygen 1.4.4