Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

oagFpgaDebug.h

Go to the documentation of this file.
00001 
00002 // THIS FILE MAY BY INCLUDED MULTIPLE TIMES
00003 
00004 #include <iostream>
00005 
00006 #define DEBUG 1
00007 
00008 #define QUIT_ON_ERROR { \
00009     assert(false);      \
00010     exit(0); }
00011 #define QUIT_ON_INTERNAL_ERROR {             \
00012     assert(false);                           \
00013     cerr << "ERROR: Internal error" << endl; \
00014     exit(0); }
00015 
00016 #if defined(DEBUG_PRINT)
00017 #undef DEBUG_PRINT
00018 #undef DEBUG_PRINTLN
00019 #undef DEBUG_PRINTMORE
00020 #endif
00021 
00022 #if !defined(DEBUG_SYMBOL)
00023 // default debugging symbol
00024 #define DEBUG_SYMBOL '>'
00025 #endif
00026 
00027 #if defined(DEBUG)
00028 #define DEBUG_PRINT( x )     { cerr << DEBUG_SYMBOL << " " << x; }
00029 #define DEBUG_PRINTLN( x )   { cerr << DEBUG_SYMBOL << " " << x << endl; }
00030 #define DEBUG_PRINTMORE( x ) { cerr << x; }
00031 #else
00032 #define DEBUG_PRINT( x )
00033 #define DEBUG_PRINTLN( x )
00034 #define DEBUG_PRINTMORE( x )
00035 #endif
00036 
00037 #define YU_TEST 1

Generated on Mon Jul 9 14:17:19 2007 for OA Gear Fpga by  doxygen 1.3.9.1