debug.h

Go to the documentation of this file.
00001 
00011 #ifndef __DEBUG_H__
00012 #define __DEBUG_H__
00013 
00015 #define DEBUG_MODE 0
00016 
00017 
00018 #if DEBUG_MODE
00019         // Debugging is ENABLED
00020         #ifdef NDEBUG
00021                 #undef NDEBUG
00022         #endif /* #ifdef NDEBUG */
00023 
00032         #define THROW(exceptionClass, message) \
00033                 throw exceptionClass(message, __FILE__, __LINE__, __func__)
00034 
00035         /*
00036          * Own debugging symbols and macros
00037          */
00038 
00039         // Displays exception name in the error message
00040         #define SHOW_EXCEPTION_NAME 1
00041 
00042         // Show debbuging information in Matrix member functions
00043         #define DEBUG_MATRIX 0
00044 
00045         // Show debugging information in the ConfigProcessor
00046         #define DEBUG_CONFIGPROCESSOR 1
00047 
00048         // Show debugging information in edition windows
00049         #define DEBUG_EDITATIONWINDOW 0
00050 
00051         // Show debugging information in gui
00052         #define DEBUG_GUI 1
00053 
00054         // Show debugging information in palette
00055         #define DEBUG_PALETTE 1
00056 
00057 #else
00058         // Debugging is DISABLED
00059         #ifndef NDEBUG
00060                 #define NDEBUG
00061         #endif /* #ifndef NDEBUG */
00062 
00068         #define THROW(exceptionClass, message) \
00069                 throw exceptionClass(message)
00070 
00071 #endif /* #if DEBUG_MODE */
00072 
00073 // Assertion library
00074 #include <cassert>
00075 
00076 #endif /* __DEBUG_H__ */
00077 
00078 /* End of file debug.h */

Generated on Sun Apr 29 11:46:10 2007 for IPP/ICP2007 by  doxygen 1.4.7