00001
00002
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
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