Go to the documentation of this file.00001
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef LIBECC_DEBUG_H
00034 #define LIBECC_DEBUG_H
00035
00036 #include "libecc/config.h"
00037
00038 #ifdef CWDEBUG
00039 #include <libcwd/libraries_debug.h>
00040
00041 namespacelibecc {
00042 namespacedebug {
00043 namespacechannels {
00044 namespacedc {
00045 using namespacelibcwd::channels::dc;
00046 extern libcwd::channel_ct ecc;
00047 extern libcwd::channel_ct polynomial;
00048 extern libcwd::channel_ct bitsetfind1;
00049 extern libcwd::channel_ct bitsetshift;
00050 extern libcwd::channel_ct gaussj;
00051 }
00052 }
00053 }
00054 }
00055 #endif // CWDEBUG
00056
00057 #if ECC_DEBUG
00058
00059 #define LibEccDebug(STATEMENT...) LibcwDebug(libecc::debug::channels, STATEMENT)
00060 #define LibEccDout(cntrl, data) do { LibcwDout(libecc::debug::channels, libcwd::libcw_do, cntrl, data); } while(0)
00061 #define LibEccDoutFatal(cntrl, data) LibcwDoutFatal(libecc::debug::channels, libcwd::libcw_do, cntrl, data)
00062 #define LibEccForAllDebugChannels(STATEMENT...) LibcwdForAllDebugChannels(libecc::debug::channels, STATEMENT)
00063 #define LibEccForAllDebugObjects(STATEMENT...) LibcwdForAllDebugObjects(libecc::debug::channels, STATEMENT)
00064 #else
00065 #define LibEccDebug(STATEMENT...) do { } while(0)
00066 #define LibEccDout(cntrl, data) do { } while(0)
00067 #define LibEccDoutFatal(cntrl, data) do { std::cerr << data << std::endl; abort(); } while(0)
00068 #define LibEccForAllDebugChannels(STATEMENT...) do { } while(0)
00069 #define LibEccForAllDebugObjects(STATEMENT...) do { } while(0)
00070 #endif
00071
00072
00073
00074
00075 #if !defined(Debug) && !defined(LIBECC_INTERNAL)
00076 #error The application source file (.cc or .cpp) must use '#include "debug.h"' _before_ including the header file that it includes now, that led to this error.
00077 #endif
00078
00079 #endif // LIBECC_DEBUG_H