00001 #ifndef _FUN_FUN_H
00002 #define _FUN_FUN_H
00003 #include <qmessagebox.h>
00004 #include "config.h"
00005 #include <iostream>
00006 #include <fstream>
00007
00008 using std::cout;
00009 using std::cerr;
00010 using std::hex;
00011 using std::dec;
00012 using std::endl;
00013
00014
00015 #define REIMPLEMENT_INHERITED_TEMPLATES 0
00016
00017 #define NOT_IMPLEMENTED(f) QMessageBox::critical( 0, "Not Yet Implemented. Patience, my son.", QString().sprintf("%s\nPlease fix this in [%s]:[Line %d]",f,__FILE__, __LINE__ ) );
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef NDEBUG
00026 #define NOT_DONE(a) std::cerr << "NOT_DONE " << __FILE__ << " " << std::dec << __LINE__ << ": " << a << std::endl
00027 #define CERR_CONDITION 1
00028 #else
00029 #define NOT_DONE(a) 0
00030 #define CERR_CONDITION 0
00031 #endif
00032
00033 #ifndef CERR
00034 #define CERR if( CERR_CONDITION ) std::cerr << __FILE__ << ": " << std::dec << __LINE__ << ": "
00035 #endif
00036
00037 #endif // _FUN_FUN_H